Applet+Thread+JavaScript

Discussion in 'Java' started by George Brancovici, Apr 15, 2004.

  1. Hi all,

    I have an applet that starts a thread polling (with Thread.sleep() in
    run()) for some info in a database. The applet runs in a popup window
    started from javascript with window.open(). In the popup window under
    the applet there is a button which runs window.close(). The problem is
    that the applet somehow hangs a this point, that is from now on the
    browser behaves strangely, clicking through webpages etc. doesn't work
    anymore. If I use (before) the window's X button, everything works
    fine. This happens in Mozilla, but not in IE. The message I get is
    "sleep interrupted".
    What could this be? A Javascript problem? A Mozilla problem? Do I do
    something wrong with the thread?

    Thanks,
    George
     
    George Brancovici, Apr 15, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob Love

    applet vs. canvas in applet

    Rob Love, Jul 7, 2003, in forum: Java
    Replies:
    1
    Views:
    635
    Liu, Chunyen
    Jul 7, 2003
  2. webster
    Replies:
    0
    Views:
    873
    webster
    Jul 20, 2003
  3. Andrew Thompson
    Replies:
    0
    Views:
    423
    Andrew Thompson
    Aug 5, 2003
  4. Replies:
    0
    Views:
    568
  5. crazytazo
    Replies:
    3
    Views:
    1,271
    Daniel Pitts
    Oct 7, 2008
Loading...

Share This Page