Forum Moderators: open

Message Too Old, No Replies

self.opener gives an Access Denied error?

accessing form on parent page

         

munozc

1:28 pm on Aug 15, 2005 (gmt 0)

10+ Year Member



hello,

I have a main page which opens another page with window.open(), now from this child page I need to access input fields of the parent page, I am using the stdard instruction
self.opener.document.subject_form.KEYVALUE.value = aux;
but I keep getting an error in Javascript saying "Acccess is denied"
Any suggestions?

Thanks in advance

garann

7:23 pm on Aug 15, 2005 (gmt 0)

10+ Year Member



I'm guessing based on something that I ran into a while ago, but I don't think you get access to the DOM of the opener from a child. What should work instead is to create a function in the parent window that takes as parameters the new values and fills in the input fields in your form. The child window should have no trouble calling that function.

munozc

7:37 pm on Aug 15, 2005 (gmt 0)

10+ Year Member



Hello, Just to let you know that the problem was fixed. What happened is that the parent page had 127.1.1.1 as root and the child had localhost, so I guess it was a security issue reported by the browser.