Web Hosting, Design, & Coding forum

General discussion

Help me interpret this script

I've been coding javascript many years, but I've never seen this kind of coding before. What does the $ mean? Why the strange placement of function()? Usually, you'd have function functionName(), not $(function() {.

I got the code from here: flowplayer.org/tools/flow-playlist.html

$(function() {

// syntax highlight settings
ChiliBook.recipeFolder = "../js/chili/";
ChiliBook.stylesheetFolder = "../js/chili/";

Discussion is locked
You are posting a reply to: Help me interpret this script
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Help me interpret this script
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
looks like jquery

In reply to: Help me interpret this script

Collapse -

In reply to: looks like jquery

More stuff to learn! Happy

They sure keep you on your toes don't they. Just when you think you've mastered something, they suddenly change the rules.

Well, off to learn jquery.

Collapse -
object oriented code

In reply to: Help me interpret this script

Popular Forums

Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


This one tip will help you sleep better tonight

A few seconds are all you need to get a better night's rest.