This project is archived and is in readonly mode.

#929 ✓invalid

IE8 - Cannot inject into window.opener

Reported by Michael | June 14th, 2010 @ 02:42 PM | in 2.0 (closed)

I have a page that opens a popup. From that page, I grab several values from the previous and the user picks which records to save. After clicking Save, it changes a variable to false onthe parent (window.opener), calls a function, injects a hidden element (to simulate the Submit button being clicked), and submits the form. In some cases, the popup will not be opened, so the actual submit button would be functional.

It works fine in Firefox 3.6.3, but not in IE 8.0.6001.18702. I've attached a zip file that is a very simple example which also worked/didn't work like the above version I described.

To make sure IE didn't block the popup from creating an element, I used window.opener.document.createElement('input'), set the correct attributes (setAttribute), and appended the element using appendChild. That worked, so I think inject needs a bit of work.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins