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:
if right clicked on of img's , clicked on "show pictures", magically appeared, below:
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
Post a Comment