[jQuery] Re: Document Ready - It lost me!?

2007-08-31 Thread Pops
On Aug 30, 5:25 am, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Simulating block scope in which you can safely use the $ shortcut... Ok, and now that I came across the need, I saw you and Michael talk about this. Before I discovered jQuery 3 weeks ago, I discovered the simple "alias" trick for $

[jQuery] Re: Document Ready - It lost me!?

2007-08-30 Thread Klaus Hartl
Pops wrote: where did I get this from? (function($) { ... you code.. })(jQuery); I must of pulled if from an example. What would be its purpose to have this wrap? Simulating block scope in which you can safely use the $ shortcut... --Klaus

[jQuery] Re: Document Ready - It lost me!?

2007-08-30 Thread Pops
Never mind... Using the wrong command Document.Ready syntaxs: $(document).ready(function(){ your initialization code ... }); or $(function() { your initialization code ... }); where did I get this from? (function($) { ... you code.. })(jQuery); I must of pulled if from an

[jQuery] Re: Document Ready - It lost me!?

2007-08-30 Thread Klaus Hartl
Pops wrote: Whoa! I thought I was beginning to understand this stuff, and then. Ok, I thought that this piece of JS code in the tag like so: (function($) { ... Does it see HTML tags? ... })(jQuery); html tags .. That the whole purpose of (function($) {.. })(jQu