[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-15 Thread Ⓙⓐⓚⓔ
argh! it's always something that IE doesn't do! On 6/15/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: Jake, .load() is cool, but it doesn't work in IE if the image is already in the cache. Sean, .complete is only for images (afaik). It's a non-standard property, but widely implemented. --Karl

[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-15 Thread Karl Swedberg
Jake, .load() is cool, but it doesn't work in IE if the image is already in the cache. Sean, .complete is only for images (afaik). It's a non-standard property, but widely implemented. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 15, 2007, at

[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-15 Thread Ⓙⓐⓚⓔ
complete is cute, but the onload handler is cool! $('img').load(function (){ /*play with it */}) On 6/15/07, Sean Catchpole <[EMAIL PROTECTED]> wrote: Thanks Karl, I had no idea there was a complete property. Is this only for images, or all DOM elements? ~Sean -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ Ꭻ

[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-15 Thread Sean Catchpole
Thanks Karl, I had no idea there was a complete property. Is this only for images, or all DOM elements? ~Sean

[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-15 Thread Karl Swedberg
yes. Jôrn just posted this to the list yesterday: From the Learning jQuery book draft (be sure to buy it once its out!): if ($enlargedCover[0].complete) { animateEnlarge(); } else { $enlargedCover.load(animateEnlarge); } This is a rare instance in which the load event is more useful to us

[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-15 Thread cfdvlpr
Any other developers here have any useful information, tips, code, or advice? I think I've discovered that there may be a .completed attribute in javascript that could be used to tell when each image is loaded...

[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-13 Thread cfdvlpr
This code might work if I could get it to run immediately, but for some reason this code doesn't seem to run until after the last image is loaded. Any idea on how to get my jQuery code not to wait to load after the images are done loading?

[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-12 Thread Jeffrey Kretz
That is an interesting idea. Here's one possible way of handling it. On document ready, set a timer for a specified amount of time, that will search for each img on the page and check to see if they are loaded and alter the url as needed. I don't know the best way to test for an image being loa