[jQuery] Re: 2 beginner question

2007-07-10 Thread tlob
cheers! I'm such a beginner. http://i.somethingawful.com/cliff/ihateyou/page-262/3.jpg On 10 Jul., 15:55, John Resig [EMAIL PROTECTED] wrote: You have to add an extra wrapper function in .ready(), like so: $(document).ready(function(){ // your code }); On 7/10/07, tlob [EMAIL

[jQuery] Re: 2 beginner question

2007-07-10 Thread John Resig
You have to add an extra wrapper function in .ready(), like so: $(document).ready(function(){ // your code }); On 7/10/07, tlob [EMAIL PROTECTED] wrote: Hello First very simple question: why ist this not allowed? [code] $(document).ready( var isplaying = false; //something else );

[jQuery] Re: 2 beginner question

2007-07-10 Thread Jake McGraw
Answer both of your questions: Use: $(document).ready(function() { /* ... */ }); Not: $(document).ready( /* ... */ ); - jake On 7/10/07, tlob [EMAIL PROTECTED] wrote: Hello First very simple question: why ist this not allowed? [code] $(document).ready( var isplaying = false; //something