wood burning stoves 2.0*
The moose likes Applets and the fly likes applet and modal window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet and modal window" Watch "applet and modal window" New topic
Author

applet and modal window

Serge Adzinets
Ranch Hand

Joined: Nov 26, 2002
Posts: 166
Hi, all,
I've got the following problem.
There is a modal browser window with an applet in it. Reacting to user action, the applet calls javascript function, which opens another modal window with an applet in it. At this moment the browser hangs!
If the window being opened does not contain an applet, all works fine. If the parent window is not modal, all works fine. If the child window is opened not from applet, all works fine again.
Does anybody know a workaround for this?
Browser: IE 6.0.
JVM MS or Sun 1.3.1 (under Sun's JVM it doesn't hang but the applet is empty instead).
Modal windows are called with IE's showModalDialog function
Applet calls javascript via netscape.javascript.JSObject class.
Thanks in advance,
Serge


Best Regards,<br />Serge
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

My wild-assed guess would be that having two modal dialogs/windows displayed from the same parent browser would hang because the two dialogs would be stuck fighting over which got the focus. Is there a way to turn off the modality of the first window when displaying the second?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Paul Paul
Greenhorn

Joined: Apr 14, 2005
Posts: 1
I'm having the same problem, anyone come up with a work-around?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: applet and modal window
 
Similar Threads
All Netscape/Mozilla windows blocking with Modal Dialogs
Applet freezes after displaying pages using showDocument
Implementing thread in an applet
Javascript help : Please
can applet call javascript function?? HOW??