QUESTION: IE versions 7 and 8 do not show updated IMG SRC change made in JavaScript
You can see what I mean, if you go to the URL below, and at the bottom left (3) I want another insert, you select one of the patterns; let's say you choose Asahi Chartreuse. Note that nothing happens with the preview on the left. BUT then, if you go further and select a different pattern, you will see a preview in the left scene to show Asahi Chartreuse. So this is one thing. This is why I think this is an βupgradeβ problem. It works fine in Chrome.
In IE: note that if you click on some other control, the update will happen.
You can see the code here: https://www.casemodo.com/test.asp
WHAT I GOT SO FURTHER:
I tried adding headers to say no-cache.
I tried adding "?" and a random number after the png file name.
I tried setting focus () to the image after changing src.
I tried changing src to say style.display to be hidden and then visible.
I tried to create a hidden (not hidden) text input field on the page and then set focus () for it after changing img src.
I tried setting window.focus ().
I tried (as you see now) to set a warning after changing src.
GUESS: Now it looks like this: the JavaScript engine just pauses after I installed this src, when you manually click (focus) on another place on the screen. Thus, he never gets to all of the scenarios that I tried above.
source share