[jQuery] Re: load() confusion

2009-10-02 Thread James
What exactly are you trying to do? If you're trying to load HTML into a div, you can kind of imitate it with a setInterval function that periodically checks whether the content has changed or not. If the div is not empty, first you check the content and store it (or a checksum of it) somewhere. T

[jQuery] Re: load() confusion

2009-10-01 Thread MorningZ
No... as javascript doesn't fire anything to listen to for that On Oct 1, 11:30 pm, Michael Rowe wrote: > Ok, so is there a way with javascript to fire a function when a div is > finished loading it's contents? > > On Thu, Oct 1, 2009 at 8:38 PM, MorningZ wrote: > > > James:  there is also a Ja

[jQuery] Re: load() confusion

2009-10-01 Thread Michael Rowe
Ok, so is there a way with javascript to fire a function when a div is finished loading it's contents? On Thu, Oct 1, 2009 at 8:38 PM, MorningZ wrote: > > James: there is also a JavaScript event called "load" for certain DOM > objects.. and consequently the ability to wire jQuery onto that > (h

[jQuery] Re: load() confusion

2009-10-01 Thread James
MorningZ, Thanks for the correction. I've never had to use it and overlooked it. :) On Oct 1, 2:38 pm, MorningZ wrote: > James:  there is also a JavaScript event called "load" for certain DOM > objects.. and consequently the ability to wire jQuery onto that > (http://docs.jquery.com/Events/load#

[jQuery] Re: load() confusion

2009-10-01 Thread MorningZ
James: there is also a JavaScript event called "load" for certain DOM objects.. and consequently the ability to wire jQuery onto that (http://docs.jquery.com/Events/load#fn) to original poster: "if I target the IMG, then it works fine, but how come it doesn't work with the div? " because 's d

[jQuery] Re: load() confusion

2009-10-01 Thread James
load() is suppose to take a url as the first parameter. http://docs.jquery.com/Ajax/load On Oct 1, 8:47 am, flyagaricus wrote: > I'm new to JQuery > > I can't get load() to work with a div class: > > >         jQuery(document).ready(function($) { >                 $(".Loader").load(function(){