As I've spent about 5 hours on this bug so I thought I'd post the solution in case anyone else gets it/ googles this:
When images are loaded with javascript, or image elements are created with javascript, IE caches the image sizes, and uses those sizes for all subsequent loads to that image path, regardless whether the image size has changed and the cache is cleared, (even if the original size image was loaded yesterday). Putting a random string to the path to load, ie imagePathToLoad = 'http://www.site.com/myImage.gif?randomNumber=' + ' myRandomNumber; Fools IE into thinking the request is new and it doesn't load it's cache of dimensions. On Jan 30, 1:05 pm, matt_thomson <[email protected]> wrote: > Thanks, I hadn't noticed the images doubling up bug yet, an extra > class was being instaniated every time the lightbox popped up and they > were all working at same time. > > I've worked out IE is not caching the images per se, but it is caching > the image size. i.e it downloads the image, but stretches it out at > the previous size. There is no html/javascript that sets the size of > the image, and the lightbox displays at the right size if I comment > out the "inject" line of javascript. Gonna be a long debugging > session... dam IE. > > On Jan 30, 12:32 pm, Nathan Cox <[email protected]> wrote: > > > Send an email to [email protected] > > > Christopher Linton wrote: > > > I would like to be taken off this mailing list. How can I do this, > > > please? > > > > On Fri, Jan 30, 2009 at 6:28 AM, matt_thomson <[email protected] > > > <mailto:[email protected]>> wrote: > > > > I am making a photo gallery, I have a test gallery for debugging here: > > > > http://www.ignitewebdesign.co.nz/galler-menu/gallery/1 > > > > If you click on the big image you will see the light box. I used to > > > have the lightbox images at 800 X 600, now they are about 400 X 300. A > > > simple refresh in firefox and safari brings up the smaller light box > > > images. > > > > In IE I can not get the lightbox images to refresh. I have literally > > > (in both IE6 and 7 (both on seperate computers - no multiple IE etc)) > > > gone into the options and deleted all the temp files and then looked > > > in the folder to check that the files are gone and there are only > > > cookies there. However the big images still display. The lightbox > > > images are loaded with mootools, they are not anywhere in the markup, > > > so I can see how a plain refresh might not work. As the images are not > > > being cached on the server or with ISP (firefox works ok) I am > > > guessing IE has them somewhere on my computer, any ideas how to lose > > > them? > > > > Thanks, > > > > Matt. --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
