Yansky escribió:
> You might be running into this problem:
> http://michael.futreal.com/jquery/readyvsload
>
>
> mattv wrote:
>   
>
>   
The differences of *DOMContentLoaded* (jQuery().ready ) and *load* event
is that, while the first event is triggered when the DOM structure of 
the page is formed
in the browser , the second event *load* is triggered when ALL the 
content of the
page is loaded, then if you need to get the size of images, you need the 
*load* event
because when *ready* event is triggered the images is not available. 
Also you can use
the two events in your code.

* You can work with the DOM representation of the images in the *ready* 
event.

$(document).ready(function(){
    //working with  my DOM
});

$(document).load(function(){
    //working with my images...
});




-- 
Best Regards,
 José Francisco Rives Lirola <sevir1ATgmail.com>

 SeViR CW · Computer Design
 http://www.sevir.org
  
 Murcia - Spain


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to