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. Advertisements

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:
    828
    Liu, Chunyen
    Jul 7, 2003
  2. Blah Blah
    Replies:
    0
    Views:
    1,546
    Blah Blah
    Aug 13, 2003
  3. Jade
    Replies:
    3
    Views:
    1,094
    Roedy Green
    Aug 14, 2003
  4. Rune Andresen
    Replies:
    2
    Views:
    2,187
    Phil Powell
    Sep 17, 2003
  5. Your Name

    Applet to Applet Communication

    Your Name, Nov 3, 2003, in forum: Java
    Replies:
    0
    Views:
    479
    Your Name
    Nov 3, 2003
  6. mcdeveloper
    Replies:
    1
    Views:
    4,579
    mcdeveloper
    Jun 13, 2006
  7. Replies:
    0
    Views:
    706
  8. crazytazo
    Replies:
    3
    Views:
    1,459
    Daniel Pitts
    Oct 7, 2008
Loading...