In my example this.imgPath is a string that is something like 'http://
www.site.com/images/myImage.gif'

Is there a way to append something to this and still get myImage.gif?,

Thanks,

Matt

On Jan 31, 11:55 am, nutron <[email protected]> wrote:
> 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...
>
> > 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-tp2247600p2...
> > 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.comwww.mootorial.com
> Clientcide:  http://www.clientcide.comwww.clientcide.com
> --
> View this message in 
> context:http://n2.nabble.com/Internet-explorer-caching-image-size-tp2247600p2...
> Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to