Re: [jQuery] Multiple Ready Blocks

2006-09-26 Thread Justin Carter
On 9/26/06, Michael Geary [EMAIL PROTECTED] wrote: Note that there is a handy shortcut for $(document).ready(): $( function(){} ); -Mike Nice tip, thanks Mike! (There's one for the mag Yehuda!) Justin ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Multiple Ready Blocks

2006-09-26 Thread Klaus Hartl
Justin Carter schrieb: On 9/26/06, Michael Geary [EMAIL PROTECTED] wrote: Note that there is a handy shortcut for $(document).ready(): $( function(){} ); -Mike Nice tip, thanks Mike! (There's one for the mag Yehuda!) Justin Just FYI, thats not a secret feature, it's also in the

Re: [jQuery] Multiple Ready Blocks

2006-09-26 Thread Justin Carter
On 9/26/06, Klaus Hartl [EMAIL PROTECTED] wrote: Justin Carter schrieb: On 9/26/06, Michael Geary [EMAIL PROTECTED] wrote: Note that there is a handy shortcut for $(document).ready(): $( function(){} ); -Mike Nice tip, thanks Mike! (There's one for the mag Yehuda!) Justin

[jQuery] Multiple Ready Blocks

2006-09-25 Thread Glen Lipka
Is it permissable to have more than one $(document).ready(function() {}) per page? If it is not, would this be a good workaround? $(document).ready(function() {runGlobalJQueryFunctions();runLocalJQueryFunctions(); return false; }); The reason is that one group is managing a global header and

Re: [jQuery] Multiple Ready Blocks

2006-09-25 Thread Chris Domigan
On 26/09/06, Glen Lipka [EMAIL PROTECTED] wrote: Is it permissable to have more than one $(document).ready(function() {}) per page?Absolutely. The function is just appended to the handler I believe.Chris ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Multiple Ready Blocks

2006-09-25 Thread Michael Geary
Is it permissable to have more than one $(document).ready(function() {}) per page? Yes, as many as you want. They will be called in the same order that the $(document).ready() calls were made. Note that there is a handy shortcut for $(document).ready(): $( function(){} ); -Mike

Re: [jQuery] Multiple Ready Blocks

2006-09-25 Thread Brandon Aaron
I haven't seen this behavior and I've been using jQuery very heavily. Perhaps it was an older version as Matt sugested. I'm using latest SVN and haven't had but just a couple of issues. Brandon On 9/25/06, Dave Benjamin [EMAIL PROTECTED] wrote: On Mon, 25 Sep 2006, Michael Geary wrote: Is it