[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread Erik Beeson
There is a window.load event, and that's what you want to use: http://docs.jquery.com/Events#load.28_fn_.29 So you want: $(window).load(function() { // My stuff to do once all images are loaded... }); --Erik On 6/14/07, GianCarlo Mingati [EMAIL PROTECTED] wrote: Hi, the question may not

[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread [EMAIL PROTECTED]
The image itself will also have a load event if your creating it dynamically: $('img src=test.jpg alt= / ').appendTo(document.body).bind(load, function() { ... }); The caveat, though, is that I'm not sure when/if the event gets fired if the image is cached. Maybe someone with more experience

[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread Su
Ooh. So, this would let jQuery get the width of an image, even if that image doesn't have an /explicit/ width attribute set? Sorry if I'm being dense, but I wasn't quite following the question above, and this would solve a problem I'm having with my figures plugin. On 6/14/07, Erik Beeson [EMAIL

[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread GianCarlo Mingati
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html Hi all. It works now, thank you very much, but why couldn't I put only one istance per page? Try yourself if you got the time. I'll work on that too. Grazie! GC On Jun 14, 8:09 pm, Jörn Zaefferer

[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread Renato Formato
GianCarlo Mingati ha scritto: http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html Hi all. It works now, thank you very much, but why couldn't I put only one istance per page? Try yourself if you got the time. I'll work on that too. Grazie! Ciao

[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread GianCarlo Mingati
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-multi.html Hi, that's what happens if i put more than one 'instance' of slideviewer into a page. The 'load' trick worked but now i think that despite renato's suggestion (if you look at the plugin the code is wrapped