Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Help me interpret this script

Jul 25, 2008 12:30AM PDT

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() {
$("#playlist").playlist(
{src:"../video/FlowPlayerDark.swf",bgcolor:'#009dff'},
{initialScale:'scale'},
{loop:true}
);
});

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

Discussion is locked

- Collapse -
looks like jquery
Jul 25, 2008 10:54AM PDT
- Collapse -
Thanks
Jul 25, 2008 10:48PM PDT

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
Jul 26, 2008 7:00AM PDT