File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Applets
Bookmark "applet and modal window" Watch "applet and modal window" New topic

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,

Best Regards,<br />Serge
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

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?

[How To Ask Questions On JavaRanch]
Paul Paul

Joined: Apr 14, 2005
Posts: 1
I'm having the same problem, anyone come up with a work-around?
I agree. Here's the link:
subject: applet and modal window
It's not a secret anymore!