jquery - Iframe not loading on IE9 -
I am using .NET platform, there is an iframe on my master page.
& lt; Iframe id = "NewsFeedFrame" name = "NewsFeedFrame" style = "height: 1042px; border: 0 px solid; overflow: hidden;" Intuitive = "intuitive" & gt; & Lt; / Iframe & gt; And on the document. Already in the javascript event I'm loading the iframe like this.
$ ("iframe"). Attr ("src", "Abc.aspx"); But this thing does not load anything on Internet Explorer. Is there any solution ???
Note: There are some documents from IE9 that can help in understanding. Thank you for sharing it with us.
After about a week after I became mad, I came to know this.
The problem with IE9 is not specifically Javascript code in iframes even if javascript or javascript in iframes attached to any library (many of my js libraries and plugins can be IE9 screw) Not even with.
The problem is that when you carry IFrame or ancestor through IOM. IE 9 will abandon the code in the page you load in the IRF as you move. Each time (but the last one), there will be objects, strings, arrays and other undetermined (and other worms too).
Example:
var iframe = $ ("ATR (" src "," www.example.com "). Attr (" id "," myIframe ") ; & Lt; iframe & gt; iframe.appendTo ("body"); $ ("# MyIframe") appendTo ("form: eq (0)") .; "www In the ".example.com", the javascript code will be executed once with the error described above and then with errors.
The code will be removed only once and with the following code: < Attr ("src", "www.example.com"). Attr ("id", "myIframe") / p>
var iframe = $ ("& lt; iframe & gt;"). ; Iframe.appendTo ("Form: eq (0)");
Comments
Post a Comment