bind('load', ... ) not firing on IE in 1.1.4
Hi
I am using bind.('load' ... ) to determine if an image has been
loaded. It works fine in FF, and works at first in IE, but seems that
IE caches the image and so the image load event does not get fired
subsequently.
You can see it in action here : http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/
The relevant code is here:
var img = $("<img/>")
$(img).attr({ 'class': 'image', src: $elem.attr('href'), alt:
$elem.text(), style: 'margin-top: -10000px; margin-
top:-10000px'}).bind("load", function() { functions.imageLoaded(elem,
this)} )
Jonah