LiveConnect writing to wrong field.

Discussion in 'Java' started by Alan Pocklington, Apr 19, 2004.

  1. Hi,

    I've created a Java Applet that allows the user to select a record. As the
    user makes the selection, the applet uses LiveConnect (JSObject) to write
    the record id to a html field (the name of which is passed in to the applet
    as an arg).

    This all works fine, but now I have two instances of the same applet
    running on a page, both linked to different HTML fields so that making a
    selection from applet 1 updates html field 1, a selection from applet 2
    updates html field 2. This works for 90% of the time. However, on the odd
    occasion one of the applets will write to the other applet's field (and the
    other will continue to work normally). Refresh the page and everything
    works fine again.

    I'm not sure why this is happening and it is driving me crazy! I wondered
    if anyone else has run into the same problem.

    Thanks in advance for any help.

    Alan.
    Alan Pocklington, Apr 19, 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. Ike
    Replies:
    5
    Views:
    493
    Andrew Thompson
    Nov 11, 2003
  2. DKM

    DOM API or LiveConnect?

    DKM, Jun 4, 2005, in forum: Java
    Replies:
    4
    Views:
    668
  3. DKM
    Replies:
    1
    Views:
    528
  4. DKM
    Replies:
    9
    Views:
    1,098
    Andrew Thompson
    Jun 24, 2005
  5. Alan Pocklington

    LiveConnect writing to wrong field.

    Alan Pocklington, Apr 19, 2004, in forum: Javascript
    Replies:
    3
    Views:
    106
    Alan Pocklington
    Apr 19, 2004
Loading...

Share This Page