Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-03-2006, 06:42 PM   PM User | #1
ghost1157
New to the CF scene

 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ghost1157 is an unknown quantity at this point
external parent child forms , can this work ?

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 .

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

<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)
childWindowHandles[loop].close();
}
//-->
</script><script language="JavaScript" type="text/javascript" src="http://208.239.76.131/secure/includes/oejslib.js"></script>
<title>Untitled Document</title>
</head>
<body onFocus="closeChildWindows();">
<body>


<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('http://208.239.76.131/secure/choose-did.php?did_prefix=Choose DID&did_group=1',
'choose_did', 'width=450, height=200, dependent=yes, alwaysRaised=yes, titlebar=no, hotkey=no, resizable=yes');"
></div>
<input name="operation" type="hidden" value="EDIT_DID">
</form>


</body>
</html>
ghost1157 is offline   Reply With Quote
Old 05-03-2006, 07:56 PM   PM User | #2
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,355
Thanks: 3
Thanked 458 Times in 445 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
posting http://208.239.76.131/secure/includes/oejslib.js

will help
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote
Old 05-03-2006, 08:08 PM   PM User | #3
ghost1157
New to the CF scene

 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ghost1157 is an unknown quantity at this point
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 .
ghost1157 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:43 PM.


Advertisement
Log in to turn off these ads.