Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Auto close pop up window

Locked
forgot
Posts: 42
Joined: Thu Aug 09, 2012 8:52 pm

Auto close pop up window

Unread post by forgot »

Hello.

What should I do for auto close blank pop-up window after execute php procedure in form?

I have button on form and JavaScript for it. In JavaScript I use runIt(pCode); for executing some php code.
Then I press this button some annoying window pop-up in background.
Maybe I must add some code to php procedure?

--
Maxim
admin
Site Admin
Posts: 2824
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Auto close pop up window

Unread post by admin »

Maxim,

at the end of the procedure put..

Code: Select all

print "<html><body  onload='window.close()'></body></html>";
Steven
forgot
Posts: 42
Joined: Thu Aug 09, 2012 8:52 pm

Re: Auto close pop up window

Unread post by forgot »

Thank you!!!
admin
Site Admin
Posts: 2824
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Auto close pop up window

Unread post by admin »

.
Locked