• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

modal pop up not closing

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic