Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Same origin policy in IE

Status
Not open for further replies.

pknapp

Programmer
Jun 23, 2000
2
GB
Does anyone know a workaround of this in IE. I want to send the contents of a field in one window to another window in a different domain (i.e. completely different, not just aaa.bbb.com and ccc.bbb.com). I know you can do it in Netscape by declaring instance variables, but can't find a workaround in IE. The reason the domains are different is that one is a Domino server and the other is IIS on the same intranet. Any ideas?
 
Sure, show us the code to do it in Nutscrap and we might be able to figure it out.<br><br>-pete
 
Basically, I want to update a textbox in one window (Window 1) from another window in a different domain (Window 2). Window 1 contains the text box. The user clicks a button which opens Window 2. Then, they click a link in Window 2 which updates the textbox in Window 1.<br><br>The code in the link Window 2 is:<br><br>onclick=javascript:eek:pener.document.forms[0].fieldname.value=passedvalue;<br><br>Which gives an access denied error as the windows are in different domains. You can get around this problem in Netscape by declaring an instance variable for the form in the opening window (Window 1). e.g.<br><br>unres = document.forms[0];<br><br>Then updating the link code above (Window 2) to read...<br><br>onclick=javascript:eek:pener.unres.fieldname.value=passedvalue;<br><br>This allows access in Netscape (not a very good security model I know but it works). I don't know how to get around the access denied error in IE.<br><br>The reason the windows are in different domains is because the opening window is on a IIS server and the opening window is on a Domino server. I work for a large bank and there's no way of putting both on the same server or changing the domain names to match each other. Any ideas?<br><br>Thanks<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top