View Full Version : external parent child forms , can this work ?

05-03-2006, 06:42 PM
Okay this is nothing more than code I cut copied and pasted togther becuase I don't know php . The form does pull up the child window but the child selection does not get into the parent form ..... what am I missing here ?
note , I do not have file access to the child form , only to the output from it .

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="0; URL=enable_javascript.php">

<script language="JavaScript" type="text/javascript">
var mytarget;
var childWindowHandles = new Array();

function openNewWindow(url, name, params) {
return (childWindowHandles[childWindowHandles.length] = window.open(url, name, params));

function closeChildWindows() {
for (var loop=0; loop<childWindowHandles.length; loop++)
if (!childWindowHandles[loop].closed)
</script><script language="JavaScript" type="text/javascript" src=""></script>
<title>Untitled Document</title>
<body onFocus="closeChildWindows();">

<form name="did_select" method="post" action="testphp.php" style="margin:0">
<input name="index" type="hidden" value="0">
<div align="center">
<input name="did_prefix" type="text" value="Choose DID" readonly="1" size="12"
onclick="mytarget = this.form; openNewWindow(' DID&did_group=1',
'choose_did', 'width=450, height=200, dependent=yes, alwaysRaised=yes, titlebar=no, hotkey=no, resizable=yes');"
<input name="operation" type="hidden" value="EDIT_DID">


05-03-2006, 07:56 PM

will help

05-03-2006, 08:08 PM
I don't have the code for that file , only the file itself , thats another issue that is making this difficult .
If there is a different script I can use that is more familiar for this type of problem , I would be happy to switch .