Advanced Layer Popup Support Product Page
This topic is locked
Answered
Automatically Close Popup After Update Behavior
Asked 03 Dec 2009 16:54:34
1
has this question
03 Dec 2009 16:54:34 Jon Jaques posted:
Hello, I have a form that opens in an ALP window, and I would like to have it close after submitting the form, given successful submission. I've looked at similar posts, such as this one, but they don't work for me:www.dmxzone.com/forum/topic/40539/?highlight=close%20popup
The last thing I tried was like this:
response.Write "<script type=""text/javascript"">parent.cDMXPopupWindow.closeWindow('dmxPopupRoomEditor')
</script>"
"RoomEditor" is the name of the popup used in ALP from the calling page.
Hmmm, using the referenced example of the button, this does work:
<input type=button value="Close Window" onClick="parent.cDMXPopupWindow.closeWindow('dmxPopupRoomEditor')">
BUT, I want to automatically close the window on success, rather than waiting for the user to click close.
Any ideas?
Thanks in advance!
--Jon
Promoted Answers
Replied 10 Dec 2009 13:30:47
Hi Jon,
You can call that close snippet on form submission.
you can provide the pop-up page code in order for me to get a better idea of what you would like to achieve.
Regards,
You can call that close snippet on form submission.
you can provide the pop-up page code in order for me to get a better idea of what you would like to achieve.
Regards,
Replies
Replied 10 Dec 2009 13:30:47
10 Dec 2009 13:30:47 Miroslav Zografski replied:
Hi Jon,
You can call that close snippet on form submission.
you can provide the pop-up page code in order for me to get a better idea of what you would like to achieve.
Regards,
You can call that close snippet on form submission.
you can provide the pop-up page code in order for me to get a better idea of what you would like to achieve.
Regards,
Replied 28 Dec 2009 22:09:29
28 Dec 2009 22:09:29 Jon Jaques replied:
Hey, I figured out how to do it, just needed to put the code snippet lower down in the page!
Replied 04 Jan 2010 10:28:15
04 Jan 2010 10:28:15 Miroslav Zografski replied:
Hi Jon,
wish you all good in 2010 year!
Nice that you got this solved!
Regards,
wish you all good in 2010 year!
Nice that you got this solved!
Regards,
Replied 04 Jan 2010 19:21:26
04 Jan 2010 19:21:26 Jon Jaques replied:
Thank you, and same to you!