[jQuery] Re: calling style

2008-11-06 Thread Richard D. Worth
On Thu, Nov 6, 2008 at 2:36 AM, Satyakaran <[EMAIL PROTECTED]> wrote: > > >function load() { >//jQuery(function($) { >$("#div1").load("starterkit.html"); >//}); >} This one calls the .load() immediately. > > > OR > > funct

[jQuery] Re: calling style

2008-11-06 Thread Rik Lomas
The difference is that the commented out version assumed that jQuery is the only JS library, as the $ function is used in other libraries, such as mootools and Prototype, so the jQuery(function($) { }) stops any conflicts Rik 2008/11/6 Liam Potter <[EMAIL PROTECTED]>: > > he's commented out the

[jQuery] Re: calling style

2008-11-06 Thread Liam Potter
he's commented out the jquery call out. All you would need is this; jQuery(function() { $("#div1").load("starterkit.html"); }); Satyakaran wrote: Difference between the two code? On Nov 6, 12:36 pm, Satyakaran <[EMAIL PROTECTED]> wrote: function load() {

[jQuery] Re: calling style

2008-11-06 Thread Satyakaran
Difference between the two code? On Nov 6, 12:36 pm, Satyakaran <[EMAIL PROTECTED]> wrote: >         function load() { >                 //jQuery(function($) { >                         $("#div1").load("starterkit.html"); >                 //}); >         } > > OR > > function load() { >