Tuesday, May 3, 2016

Re: GWT. Images Loading And Composite

Hi, please example ??


El jueves, 20 de agosto de 2009, 16:26:53 (UTC-6), Sumit Chandel escribió:
Hi all,

Setting the src attribute on an <img> element won't necessarily guaranteed that the image will be updated and point to your new image file since it doesn't force the <img> tag to be reinterpreted or executed. What you should do instead is create two Image widgets (or use an ImageBundle and bundle the two images in it), and swap them as needed when you want to change the image (explicitly removing the old image widget and adding the new one).

Hope that helps,
-Sumit Chandel

2009/8/18 sschz <soraya....@gmail.com>

Hi,

I also have the same problem though, in my case, the image is being
updated when using firefox (ie and hosted mode do not seem to realize
the image url has been modified). Has anyone managed to solve this
problem? I'm using gwt1.6.4

I've tried to update the image both, by using setUrl and DOM.setImgSrc

Regards.

On Jul 21, 3:18 pm, Дмитрий Николаев <blacklit...@gmail.com> wrote:
> Hi!
>
> I'm in trouble - very often when Iupdateurlof the images, browser
> notupdatethem (in hosted mode, firefox)
>
> img.setUrl("..."); // sometimes won't work
>
> Ok, I try to instantiate newImageevery time I needupdateurl. I Use
> img = newImage("..."); on my SimplePanel.
>
> In hosted mode ot works, but in firefox - won't, when I press shift
> +refresh when reloading page (with clearing the cache).
>
> Hacks like DOM.setElementAttribute(Image.getElement(), "src", path);
> won't help.



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment