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,'');}
>
>
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()))
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
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
4 matches
Mail list logo