maybe append a random query string to the path? new Asset.images(this.imgPath+'?noCache='+ new Date().getTime());
On Fri, Jan 30, 2009 at 2:45 PM, Matt Thomson (via Nabble) < [email protected]<ml-user%[email protected]> > wrote: > > Hi I am loading an image like this: > > this.imageTest = new Asset.images(this.imgPath, > { > onComplete: function() > { > this.imageTest[0].injectTop(this.container); > } > }); > > If the image is 800 X 600, IE will work properly. If I change the > image on the server to to 400 X 300, IE will download the correct > image, but it will stretch it out to 800 X 600. > > I have tried this method: > > > http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread/0251a835-e1a7-481c-8ad1-bde1f69b8e89/ > > but obj = document.createElement("<img src='test1.gif'>"); kills the > script for me. > > I have also tried(inside the onComplete: function() ): > > this.ImgToLoad = new Element('img', > { > 'src': this.imgPath > }); > this.ImgToLoad.injectTop(this.container); > > The strange thing is if I browse to the image on the server IE > displays it correctly, and if the image is loaded from the html it > displays correctly. When it is loaded with javascript IE gets the > imgsize from a couple of days ago, regardless of the size of the image > in the cache. > > Does anyone have any ideas how to get around this bug, > > Thanks, > > Matt. > > > ------------------------------ > View message @ > http://n2.nabble.com/Internet-explorer-caching-image-size-tp2247600p2247600.html > To start a new topic under MooTools Users, email > [email protected]<ml-node%[email protected]> > To unsubscribe from MooTools Users, click here< (link removed) >. > > > ----- The MooTools Tutorial: http://www.mootorial.com www.mootorial.com Clientcide: http://www.clientcide.com www.clientcide.com -- View this message in context: http://n2.nabble.com/Internet-explorer-caching-image-size-tp2247600p2247654.html Sent from the MooTools Users mailing list archive at Nabble.com.
