Can JSObject be called "remotely" ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Olivier aka Cypher

    Can JSObject be called "remotely" ?

    Hi gurus and fellows.

    I designed an pilot applet with can be seen at


    This applet has no GUI in fact. It receive financial data (which are
    being pushed) and then update DOM element in the browser thanks to the
    "JSObject" library.
    Let's consider it acts as a "proxy" then.

    As is, it works under IE/Mozilla-like Browsers and both Microsoft JVM
    and Sun JVM.

    However this applet should be called from our corporate website
    (different domain name from the Url quoted above).
    Therefore I need to change the Applet's codebase from a relative one
    to an absolute one.
    That is :
    /Resources/ --> http://push.integration.euronext.com/Applet/Resources/
    Same should apply to the "javascript include", of course (unless you
    save it locally too):
    /js/common.js --> http://push.integration.euronext.com...t/js/common.js

    It still work well under IE (Please save the file locally with the
    changes I mentioned earlier and you will see).

    However under Mozilla, the Javascript part is not triggered anymore by
    the applet.

    Is this a known bug limitation ?
    Do you know any workaround ?


    Any help and tip much appreciated.


    Best regards.



    --
    Olivier
  • VK

    #2
    Re: Can JSObject be called "remotely& quot; ?

    Java <> JavaScript interaction is kind of "love me - love me not" game.
    From version to version (JVMs and browsers) it gets restricted, released,
    restricted, released, and you may never guess what is going to be
    restricted/released next time.

    After "merry go around" for couple of years I personally got dizzy of it and
    I'm using Absolutely Terribly Wrong way to interact, which always works
    though:

    URL jsCall = new URL('javascript :void(myFunctio n(myParams))');
    showDocument(js Call);




    Comment

    • Martin Honnen

      #3
      Re: Can JSObject be called &quot;remotely& quot; ?



      Olivier aka Cypher wrote:

      [color=blue]
      > However under Mozilla, the Javascript part is not triggered anymore by
      > the applet.
      >
      > Is this a known bug limitation ?[/color]

      I would rather think it is a security restriction. Have you checked the
      Mozilla JavaScript console, does it show any errors or warnings? Have
      you checked the Sun Java Plugin console, does it show any errors or
      warnings?

      --

      Martin Honnen

      Comment

      Working...