how can i passing data between windows (IE7)

C

CaesarX

Hi, excuse my english...

with visual studio i got this (more or less)

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:
after clicking a button on this window... goes to the javascript

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

either doesnt work usign this:
window.opener.document.getElementById("ID").value=valor;

can anybody help me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top