
09-04-2008
|
|
|
|
how can i passing data between windows (IE7)
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=4 50,
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=v aluex;
window.close();
}
</script>
------------------
either doesnt work usign this:
window.opener.document.getElementById("ID").value= valor;
can anybody help me?
|