I am trying to implement something like this:
-
Clicking on a link, a pop-up will be opened, something like sign-up page.
-
On submission, if data is unfilled, an error message will be generated.
But on successful submission, it will be redirected to the main page opened earlier in the browser.
Im using thickbox for the pop-up feature. On redirecting using the following code:
<meta http-equiv="refresh" content="1;url=http://localhost/cgi-bin/Ajax/index.pl/">
The main page is being redirected, but in the pop-up itself I want the pop-up to die after successful submission and the main page gets refreshed.
I’ll asume you’re using the iFrame solution from the thickbox website. It looks to me that you have to set the
modal=truepart in the URL and use thetb_remove()function once the login is completed. The same goes for the AJAX version.You should therefore just add something like this to your javascript (that you print from perl iirc).
Please note that I have not tested this and I’m only referring to the documentation.