callback "onJavascriptReady" is not working properly

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 7u6
    • Component/s: deploy
    • None

      Callback utility "onJavascriptReady " is not working properly as it seems call to applet from JavaScript function is made even before applet is ready. As a result JavaScript error is getting thrown when any applet method is tried to be called from JavaScript
      Issue can be seen with FX2.1 also
      Steps to reproduce:
      1) Install latest promoted or nightly build of FX2.2.
      2) Clear deployment cache and try to load following applet
      http://sqeweb.us.oracle.com/deployment2/jitu/plug-bug/javafx/callback/html/testJStoJavafx_Call_OverloadedMethod_int_ArgCallback.html
      On IE we can see JavaScript error against statement "testApplet.callFromJS(47)"
      "Object does not support this property or method
      while on firefox following JavaScript error is getting thrown
      "testApplet.callFromJS is not a function"
      4) Close browser and clear deployment cache
      5) Now try to load following html page using same applet but not using callback utility "onJavascriptReady"
      http://sqeweb.us.oracle.com/deployment2/jitu/plug-bug/javafx/callback/html/testJStoJavafx_Call_OverloadedMethod_int_Arg.html

      This time "testApplet.callFromJS(47)" does not throw any error and we can also see following inside plugin trace
      >>>> int args called 47

      Also reloading the page under #3 or loading it again without clearing the cache ,works sometimes


            Assignee:
            Igor Nekrestyanov (Inactive)
            Reporter:
            Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: