Page 1 of 1

how to get value from POPUP to Parent Window

Posted: Wed Feb 27, 2008 6:42 am
by eshban
Hello,

I need some help

I have a form in child window(popup window). And i want to send /post data to the parent window with javascript.

Here is my code

Code: Select all

 
 
 
<form name='form3' method='post' action='../ubr_file_upload1.php'>    <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td style="text-decoration:underline; cursor:hand" onclick="javascript&#058;document.form3.submit();window.location='addressbook12332.php';window.opener.location.reload();">kkk2</td>
      </tr>
 
    </table>
    <input name='EmailValueHidden' type='hidden' value='kkk2'/>    </form>
 
 



Both windows are refreshed when i submit the form in popup, but i cannot get the POST data in a parent window.

Any solution ????

Re: how to get value from POPUP to Parent Window

Posted: Wed Feb 27, 2008 11:02 am
by Christopher
You can't do it that way. Perhaps you could set the values in the opener form and then submit it.