How to allow a cross domain page to access (and modify) my form fields?
Posted on 2008-10-21
I got two pages:
* A.jsp has an html form named "iForm" with address fields and a popup link to B.jsp
* B.jsp allows the user to select an addressID value and use that value to populate iForm.addressID by doing:
window.opener.document.forms['iForm'].addressID.value = selectedValueFormPopup;
So far everything's fine and dandy.
However, when A.jsp resides on a different server, I get a security error message:
"permission denied to get property Window.document"
How can I allow B.jsp access to fields on A.jsp?
(I know I can pass JSON messages to A.jsp via its url query string, but that is not the preferred method).
Help much appreciated.