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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing data between windows on ie 7

Status
Not open for further replies.

Cessaar

Programmer
Sep 4, 2008
1
MX
Hi masters,

i didnt find a post which help me

(excuse my english), I hope you could help me with this...

I´m working with visual studio 2005 on IE7 (I think this the origen of my problem because on IE6 was worked fine)...and I'm making a page which opens a popup window (window1)… on this popup, after some filters follows by a button… on the click... runs a javascript... I need the source window1 gets the values from the popup window (window2)...
here is the example

window 1:

<script type="text/javascript">
function opener() {
window.open ('window2.aspx',"X","scrollbars=yes,status,width=450,
height=450,top=0,left=0");
}
</script>
...
<input id="ID" runat="server" name="ID" class="input_texto"/>


window 2.aspx:

<script type="text/javascript" >
function Sel(valuex) {
window.parent.document.forms(0).item("ID").value=valuex;
window.close();
}
</script>


note: on IE7 doesnt work : window.opener.document.getElementById("ID").value=valor; either


do yo have any idea about it?
or something else ?

Regards...
 
Instead of "window.parent", try "window.opener" instead. If you're referring to the window that opens a popup, "opener" is always the correct way to go.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top