[jQuery] Re: javascript syntax question

2008-06-26 Thread owidjaya
thanks karl that is really clear Karl Rudd wrote: > > > The short: Define and immediately execute an anonymous function. > > The long: > > function blah() { ... } // define a named function > > blah(); // execute a named function > > > function() { ... } // define a function with

[jQuery] Re: javascript syntax question

2008-06-24 Thread Karl Rudd
The short: Define and immediately execute an anonymous function. The long: function blah() { ... } // define a named function blah(); // execute a named function function() { ... } // define a function without a name (anonymous) // can't execute the function because it doesn't hav