javascript - Images don't display in ie9 when inserted using ajax and innerHTML, until users right clicks on and clicks "Show Pictures" -


i upgrading wesbite work ie9 (i really hate ie), , after fiddling worked, except when inserting html page using code below, none of pictures display.

$("#div").innerhtml(htmltoinsertwithimgtags); 

the inserted html looked little this:

ie9 not showing pictures in html inserted using ajax , innerhtml

if right clicked on of img's , clicked on "show pictures", magically appeared, below:

ie9 showing pictures

this happens due trust setting in internet explorer, if image's want insert present on web page, internet explorer trusts new content , shows pictures.

so got round problem adding code following (i'm aware isn't html) static part of page, , when picture inserted using ajax , innerhtml eveything worked expect.

<img url="redcircle.gif" style="display:none" /> 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -