window.open, appending <script> not working in ie
With FF and every other browser I can set the innerHTML of the new window to include <script>...</script> tags, or append them using the DOM appendChild method after the new window opens to either the body or the head, no problem. The new window loads fine and all the scripts work.
However, I tried all this in IE8 and I either get a "no such interface is supported" error, or the new window and the calling window both just freeze and I have to kill them with Task Manager.
Is there any way to include <script> tags in a new window with ie8? PLEASE help!
Here's an example of what I'm trying to do:
I was able to fix it in ie by having ie-specific code. Basically file1 uses window.open to open the new window, and then using an inline script, the opened window appends the <script>'s to itself.
|All times are GMT +1. The time now is 06:21 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.