Skip to main content
Inspiring
January 28, 2009
Question

A POPup Question

  • January 28, 2009
  • 2 replies
  • 486 views
I am trying to make a login system where i want to click a link and a popup window opens.

i add the login details and if login is incorrect, it shows that login is incorrect. till this point it works fine.

I want that when there is a successful login the popup should close automatically and the page get refreshed.

I am trying it but it is not work, can anyone guide me..

also i am generating the dreamweaver code for login.

Regards
This topic has been closed for replies.

2 replies

January 28, 2009
There is also a "window.close" javascript method that can be conditionally executed from within the pop-up window.

Be aware, however, that many current browsers inform the user that the window is trying to close itself. Is their required response to a "Do you want to continue?" message really what you want to happen?

Usually people opt for a button to execute the window.close mechanism - which avoids the message.
Inspiring
January 28, 2009
quote:

Originally posted by: coffeedrinker56
There is also a "window.close" javascript method that can be conditionally executed from within the pop-up window.

Be aware, however, that many current browsers inform the user that the window is trying to close itself. Is their required response to a "Do you want to continue?" message really what you want to happen?

Usually people opt for a button to execute the window.close mechanism - which avoids the message.

window.close() and self.close() are effectively equivalent.


The confirm window alluded to only comes into play when you are trying to close a window with javascript that was not opened with javascript.
Inspiring
January 29, 2009
If your using CF8
There is a neat example in the online docs

Using the cfajaxproxy SetForm function

Look in the page for "Using the cfajaxproxy SetForm function"

Ken
Inspiring
January 28, 2009
I forget the exact details, but, it's something like this:

window.opener.reload();
self.close();

This is javascript of course.