View Single Post
Old 01-30-2007, 06:27 PM   #13 (permalink)
daraptor
Recruit
 
Join Date: Dec 2006
Posts: 14
daraptor is on a distinguished road
Quote:
Originally Posted by sde View Post
opener references the parent, so in your javascript you should be able to use that.

for example, if i wanted to assign a text field in the opener window from a text field in the popup, i would assign those fields ids and do something like this in the popup:
Code:
opener.getElementById('my_text_field').value = 'blah';
might need to make it opener.document.getElementById .. i haven't tested it.

report back what you find.
hey man this is my parent window.....

Quote:
<body>
<form id="form1" name="form1" method="post" action="">
<label for="textfield">example or <a href="child.cfm">instance</a> </label>
<input type="text" name="textfield" id="textfield" />
</form>
</body>
</html>
this is my child window....
Quote:
<body>
<p>this is child window.....with a href link by clickin it i want to populate the textbox in parent window....</p>
<p>results after search : </p>
<table width="200" border="1">
<tr>
<td width="63"><div align="center">XYZ</div></td>
<td width="86">ABC</td>
<td width="29">DEF</td>
</tr>
</table>
</body>
</html>
now in the parent window..you can see there is a texbox with hyperlink named instance or example.....that hyperlink when clicked will open a popup child window....

now in the child window....after performin the search...got the results a table with xyz,abc,def ok.....now...xyz should be a hyperlink....and when i click on xyz in the popup....the popup should close and i should see xyz in the parent text box......could this be possible....if so....can u plz make corrections to this example above and lemme know...plz man....thanx for the help......
daraptor is offline   Reply With Quote