This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes modal pop up not closing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "modal pop up not closing" Watch "modal pop up not closing" New topic
Author

modal pop up not closing

vinod khanna
Greenhorn

Joined: Jun 24, 2007
Posts: 1
Hi all thanks in advance,

I have a pop up window using window.ShowModalDialog(). The pop up should take details of the user and when 'Accept' button is pressed on this popUp window , Im supposed to put these values taken from the user into session and close the pop up window.

In the popUp JSP I wrote a javascript function when the user clicks the 'Accept' button, in that function i am doing doc.forms[0].submit=<action path>?parameter... etc
and then window.close(); in the same function, to close this pop Up.


when I use a normal pop up with window.open() it works, but with the window.ShowModalDialog(), it doesn't work it shows a javascript error.

Please help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

You do realize that showModalDialog is a proprietary IE functiom right? Your pages will not work with any other browser.

I imagine that you must also use a proprietary means to close the modal window once opened.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: modal pop up not closing
 
Similar Threads
Struts action triggered by onUnload event
How to submit a form like this, using struts?
close pop up window and redirect to parent window in struts2
Struts action triggered by onUnload event
Question on using showModalDialog