This topics been covered before but it wasnt resolved. So can this be done at all?
I need to pass a value from the child window and assign it to a hidden form field in the Parent window.
Here is the sample code. (not mine just took it from a previous post)
Main Window
PopUp Window
Any help appreciated guys.
I need to pass a value from the child window and assign it to a hidden form field in the Parent window.
Here is the sample code. (not mine just took it from a previous post)
Main Window
Code:
<html>
<head>
<title>IRC Database Management</title>
<script language="javascript">
function openMe(){
var x = window.open('add_item.htm', 'newWindow');
}
</script>
</head>
<form name="place">
<input type=text name=theBox onclick="javascript:openMe();">
<input type=hidden name=window>
</form>
</html>
Code:
<HTML>
<HEAD>
<TITLE>Deluxe Advertising Entry Form</TITLE>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
<script language=javascript>
function setOther(){
window.opener.place.theBox.value = document.myForm.thisBox.value;
window.opener.place.window.value = document.myForm.window1.value;
}
</script>
</head>
<body>
<form name=myForm>
<input type=text name=thisBox>
<input type=text name=window1>
<input type=button value="Click Me" onClick="setOther();">
</form>
</html>
Any help appreciated guys.