FireFox: event handling problem

Discussion in 'Javascript' started by StepanM, Jan 18, 2008.

  1. StepanM

    StepanM Guest

    It seems event handlers are called and run asynchronously.

    For example. I have two controls on HTML page: ListBox and TextBox
    (<select> and <input>). Both controls have event "onchange" and
    functions for this event (e.g. select_onchange and text_onchage). If I
    select item in ListBox, than I enter text in TextBox, and than I
    finally select other item in ListBox, then both events fires
    simultaneously (it can be checked up, if in both functions write a
    corresponding "alert", both alerts appear simultaneously). How to
    solve this problem?

    Thanks
     
    StepanM, Jan 18, 2008
    #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. The Alchemist
    Replies:
    4
    Views:
    777
    Mircea Pleteriu
    Jun 23, 2004
  2. Mark Tarver
    Replies:
    22
    Views:
    1,315
    J Kenneth King
    Apr 26, 2009
  3. Peter
    Replies:
    34
    Views:
    1,942
    James Kanze
    Oct 17, 2009
  4. Iñaki Baz Castillo
    Replies:
    1
    Views:
    190
    Iñaki Baz Castillo
    Apr 15, 2008
  5. StepanM

    FireFox: event handling problem

    StepanM, Jan 17, 2008, in forum: Javascript
    Replies:
    4
    Views:
    96
Loading...

Share This Page