[jQuery] Re: Problem: Event on image load in IE

2007-09-10 Thread Equand
oh by the way, here's my gallery, so u can check the code working in real-time and adapt it, http://www.nosite.ru/HU On Sep 10, 6:19 pm, Equand <[EMAIL PROTECTED]> wrote: > try adding this > if ($.browser.msie) > { > var href = $("img", "#preview").attr("src").replace(/\?\d*$/g,'');} > >

[jQuery] Re: Problem: Event on image load in IE

2007-09-10 Thread Equand
try adding this if ($.browser.msie) { var href = $("img", "#preview").attr("src").replace(/\?\d*$/g,''); } to the load, and add a random string to every linking function like this if ($.browser.msie) { href+= '?' + (Math.round(512 * Math.random()) + Math.round(512 * Math.random()))

[jQuery] Re: Problem: Event on image load in IE

2007-09-10 Thread weepy
I changed to bind('load', ... I still get the same problem - at first it fires - but once the image has loaded - it seems that IE has cached the image and so the image load event does not get fired. You can see it in action here : http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ Jo

[jQuery] Re: Problem: Event on image load in IE

2007-09-10 Thread Piotr Petrus
Have you tried .bind('load', function() {})? Load() is also responsible for ajax calls, maybe IE gets it wrong in this case -- Piotr Petrus http://riddle.pl