Can JSObject be called "remotely" ?

  • Thread starter Olivier aka Cypher
  • Start date
O

Olivier aka Cypher

Hi gurus and fellows.

I designed an pilot applet with can be seen at
http://push.integration.euronext.com/Applet/index_raw2.htm

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/Applet/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.
 
V

VK

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(myFunction(myParams))');
showDocument(jsCall);
 
M

Martin Honnen

Olivier aka Cypher wrote:

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

Is this a known bug limitation ?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top