Hello and thanks for reading my question,
I have a popup window which I want to post data from to the calling form input box.
In the head of the popup I have the following javascript.
<script language="JavaScript">
function popup_post_value( ParentFormID,ParentInputID, ChildFormID, ChildInputID )
{
var PFID=ParentFormID;
var PIID=ParentInputID;
var CFID=ChildFormID;
var CIID=ChildInputID;
opener.document.PFID.PIID.value = document.CFID.CIID.value;
self.close();
}
</script>
Then in the link to post the I have the following
$ret = <<<EOF
<td width="299" align=center><strong><font color="#CC3300" size="3" face="Arial, Helvetica, sans-serif">
<a href="javascript:onclick=popup_post_value('{$FormDataArr["FormID"]}','{$FormDataArr["InputID"]}','form2','filename')" class="insidelink">FINISH</a></font></strong></td>
</tr>
EOF;
If I view the html output the function popup_post_value contains all the correct values and if I click on it id does nothing and im not sure why....
Also I noted when i put my cursor over the link it reads
javascript:onclick=popup_post_value('form2','list1','form2','filename')
Anyway if anyone sees anything at all I'm totally open and I have tried many versions and I can seem to get anything to work....:queasy: