[jQuery] Re: $(this).ready with images

2009-02-01 Thread Balazs Endresz
Unfortunately it's not that simple, thanks to IE: http://groups.google.com/group/jquery-dev/browse_thread/thread/24b107e84adeaaee/ http://dev.jquery.com/ticket/3930 On Jan 31, 4:20 pm, frederik.r...@gmail.com frederik.r...@gmail.com wrote: Ok! That's great! Thanks for the explanation!

[jQuery] Re: $(this).ready with images

2009-02-01 Thread Ricardo Tomasi
$('#image').bind('onreadystatechange load', function(){ if (this.complete) $(this).height()...etc }); On Feb 1, 12:13 pm, Balazs Endresz balazs.endr...@gmail.com wrote: Unfortunately it's not that simple, thanks to

[jQuery] Re: $(this).ready with images

2009-01-31 Thread Stephan Veigl
Hi, the event you are looking fore is the image load event. try: $('.myimage').load(function(){...}); by(e) Stephan 2009/1/31 frederik.r...@gmail.com frederik.r...@gmail.com: Hi! I have the following task: I have a list of images and some of those images have a larger version that I

[jQuery] Re: $(this).ready with images

2009-01-31 Thread frederik.r...@gmail.com
Hi thanks for the answer, it worked fine this way. Although I understood the documentation in a way that load will only fire if the image still has to loaded. What happens when the image already is in the Browser's cache? Thanks again!

[jQuery] Re: $(this).ready with images

2009-01-31 Thread MorningZ
if its in the cache, then it will be loaded (much) faster so either cache or no cache, the page still has to load it On Jan 31, 10:09 am, frederik.r...@gmail.com frederik.r...@gmail.com wrote: Hi thanks for the answer, it worked fine this way. Although I understood the documentation in

[jQuery] Re: $(this).ready with images

2009-01-31 Thread frederik.r...@gmail.com
Ok! That's great! Thanks for the explanation!