R
rkuwadia
Guest
Hello,
I have a script in which from parent browser, I open a pop up window.
Clicking submit on Pop up window, should close the pop up window and submit the
values to the parent window.
The code on parent window(say parent.php) is something like this:
<script language=javascript>
window.name="jobpost";
window.open('xyz.php', 'xxx');
</script>
The code on xyz.php is something like this:
<form name=form1 method=post target=jobpost>
<input type=button value="Apply" onclick="javascript:OnApply();">
</form>
<script language=javascript>
function onApply(){
document.form1.action="parent.php";
document.form1.submit();
self.close();
}
</script>
The above code works on windows IE as well as NN.
But it doesnot work on Mac. It gives lot of errors . When I do not submit to parent window, no error comes.
Can anyone help me on this issue?I have no button named Submit in pop up window as well as parent window.
Thanks
I have a script in which from parent browser, I open a pop up window.
Clicking submit on Pop up window, should close the pop up window and submit the
values to the parent window.
The code on parent window(say parent.php) is something like this:
<script language=javascript>
window.name="jobpost";
window.open('xyz.php', 'xxx');
</script>
The code on xyz.php is something like this:
<form name=form1 method=post target=jobpost>
<input type=button value="Apply" onclick="javascript:OnApply();">
</form>
<script language=javascript>
function onApply(){
document.form1.action="parent.php";
document.form1.submit();
self.close();
}
</script>
The above code works on windows IE as well as NN.
But it doesnot work on Mac. It gives lot of errors . When I do not submit to parent window, no error comes.
Can anyone help me on this issue?I have no button named Submit in pop up window as well as parent window.
Thanks