[jQuery] Re: basic jQuery/JavaScript pattern

2009-07-01 Thread harryhobbes
Excellent explanation. Thank you. On Jun 23, 8:28 am, Scott Sauyet li...@sauyet.com wrote: jerome wrote: (function(){ ... })(); How is this basic to understanding how jQuery works, and how JavaScript works? The basic idea is that global variables are evil.  This technique moves

[jQuery] Re: basic jQuery/JavaScript pattern

2009-06-22 Thread Charlie
since jquery is _javascript_, and probably the best reference on the web for learning _javascript_ ( and many other languages) is w3schools.com try this link: http://www.w3schools.com/js/js_functions.asp hard to beat their explanations and "try it yourself" examples jerome wrote: I

[jQuery] Re: basic jQuery/JavaScript pattern

2009-06-22 Thread Scott Sauyet
jerome wrote: (function(){ ... })(); How is this basic to understanding how jQuery works, and how JavaScript works? The basic idea is that global variables are evil. This technique moves what would otherwise be global variables into a closure [1], removing them from the global scope. For