Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes Question on using showModalDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Question on using showModalDialog" Watch "Question on using showModalDialog" New topic
Author

Question on using showModalDialog

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

I have been asked to change a javascript function whereby we were opening up a pop-up window and then using an html page to refresh the parent window and then close the pop-up window.

However, now we've been asked to use the showModalDialog when opening up the pop-up window but when we try to use the same html page that refreshed the parent window and closed the pop-up window we are getting the following:

1. A third window (like the parent window) is opening up.
2. And the pop-up window does not close.

Here is the javascript in the html that we were using:



Here is my showModalDialog code:



I've googled and found a lot of suggestions but none are working. Any suggestions or direction would be greatly appreciated.

Regards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on using showModalDialog
 
Similar Threads
problem with self.close()
javascript error... plz help
Reloading a parent window 1 after submit from window 2
Modal window and its side-effects
post forms and window.reload()