taxtbox not accepting pop up window value

vibramzya9

New Member
I have one text-box ,when i click on it popup window gets open ,but value is not inserted in text-box when i select any radio option in popup,where is the problem?this is textbox \[code\] <tr><td> Work </td> <td><input title="Enter Work You Want to search ." readonly="readonly" id="search_workind" name="search_workind" type="text" size="20" onclick="javascript:opendrop()"> </td></tr>\[/code\]this calling function\[code\]function opendrop(){var popy= window.open('search_kind.php','popup_form','width=380 height=300 left=800 top=300');}\[/code\]this is search_kind.php\[code\]<?php ob_start() ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Search </title><script type='text/javascript'> function validepopupform(){ window.opener.document.getElementById('search_workind').value="http://stackoverflow.com/questions/14038950/" //self.close();} </script></head><body><form id="popupform" name="popupform"><h3>Audit and Assurance</h3><input name="kind" type="radio" id="kind" value="http://stackoverflow.com/questions/14038950/A" onclick="javascript:validepopupform()" />A<br/><input name="kind" type="radio" id="kind" value="http://stackoverflow.com/questions/14038950/B" onclick="validepopupform()" />B<br/></form></body></html><?php ob_flush() ?>\[/code\]
 
Back
Top