PDA

View Full Version : extjs.Img problem with IE internet explorer 8



syl_via38
3 May 2012, 1:42 AM
Hello,

I use ext img (Extjs V4.0.2) in a panel to display images wich are refreshed every x seconds.

Is there the components :



img1 = Ext.create('Ext.Img', {
id:'imgId1'
});


It works with all others

And the refresh code :



img1.setSrc('myPicture.jpg');
img1.update();


It works with all others navigators but not IE.

Any Idea ? If it can't be solved is there other component that I can use to display this image ?

Thanks in advance for your answers.

Sylvia From France

syl_via38
4 May 2012, 2:29 AM
Nobody for this problem ?

syl_via38
4 May 2012, 7:58 AM
It seems that is a problem with the function update() line :


img1.update();


Any Idea ?

syl_via38
6 May 2012, 11:36 PM
Ok I found a solution. I removed the update() function and put a random number in the name of the image to refresh to avoid the browser cache. And it's work with all browsers now.

Sylvia From France