views:

10

answers:

0

I load a bunch of images by replacing the contents of a div with the appropriate image tags. On Safari and Firefox this always works 100%.

On IE8 (quite possibly also in lower versions) the images get loaded most of the time, or at least most of them but some are missing. They are just not there. There is no image not loaded red cross or anything. The javascript handlers on the images still work, they even take up some space.

Somewhere I read this might have to do with how I start the AJAX call. I use a link that has the URL as href parameter and then use jquery to instead make an AJAX request if JS is on. Supposedly IE can enter some kind of prepare to reload state that makes HTML replacements and image reloading unstable.

Is there a better way to do the request?