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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -