Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7170953

Applets communication example doesn't work with FF12

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 8
    • 7u4
    • docs
    • None
    • x86
    • windows

      http://docs.oracle.com/javase/tutorial/deployment/applet/iac.html

      A CAP member (ea.com) has found that the above example doesn't work with FF12.

      I could reproduce it with 6u32 and 7u4. The example works fine with IE and Chrome.

      The problem is due to FF can't get the instance of the "receiver" applet in the html page as follows:
              function sendMsgToIncrementCounter() {
                  receiver.incrementCounter();
              }

      FF reports that the "receiver" is undefined in the above line.

      After changing it to the following, the example works with both IE and FF browsers.
              function sendMsgToIncrementCounter() {
                  var myReceiver = document.getElementById("receiver");
                  myReceiver.incrementCounter();
              }

      Since the original example works with IE and Chrome, I'd think there could be recent changes in FF which is causing the problem.

      We should update our tutorial and the html file for hosting the applet to fix the problem in case FF won't fix it.

            Unassigned Unassigned
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: