Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Need Help for Pop Up windows
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="rkuwadia" data-source="post: 8319"><p>Hello,</p><p></p><p>I have a script in which from parent browser, I open a pop up window.</p><p>Clicking submit on Pop up window, should close the pop up window and submit the</p><p>values to the parent window.</p><p></p><p></p><p>The code on parent window(say parent.php) is something like this:</p><p></p><p><script language=javascript></p><p>window.name="jobpost";</p><p>window.open('xyz.php', 'xxx');</p><p></script></p><p></p><p>The code on xyz.php is something like this:</p><p><form name=form1 method=post target=jobpost></p><p><input type=button value="Apply" onclick="javascript:OnApply();"></p><p></form></p><p></p><p></p><p><script language=javascript></p><p>function onApply(){</p><p> document.form1.action="parent.php";</p><p> document.form1.submit();</p><p> self.close();</p><p>}</p><p></script></p><p></p><p></p><p>The above code works on windows IE as well as NN.</p><p>But it doesnot work on Mac. It gives lot of errors . When I do not submit to parent window, no error comes.</p><p></p><p></p><p>Can anyone help me on this issue?I have no button named Submit in pop up window as well as parent window.</p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="rkuwadia, post: 8319"] 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 [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Need Help for Pop Up windows
Top