A
Alexandre Lahure
Hi all,
The facts : a rich text editing applet, a HTML/Javascript toolbar and
Liveconnect to make them communicate alltogether.
- Java to JS communication (for updating the state of the toolbar -
text align, style, color) is OK
- JS to Java communication (for changing text align, style, color)
doesn't work as expected :
* Under Firefox, the first call of a Java method is DAMN SLOW (near 20
minutes !). The following calls are OK (1 to 2 seconds). Here is the
output of the Java console (the following message is displayed more
than a thousand times) :
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = file://
* Here is the output of the Java console under Opera :
com.opera.OriginNotAllowedException: LiveConnect origin check failed
for JavaScript trying to access Java object,
caller=file://localhost/home/user/RichTextEditor.html,
callee=file:/home/user/RichTextEditor.jar
at
com.opera.LiveConnectPrivilegedActions.originCheck(LiveConnectPrivilegedActions.java:99)
at
com.opera.LiveConnectPrivilegedActions.invoke(LiveConnectPrivilegedActions.java:37)
at com.opera.InvocationThread.run(MethodResolver.java:379)
* Under IE and Konqueror, it seems OK
Thank you for your answers
The facts : a rich text editing applet, a HTML/Javascript toolbar and
Liveconnect to make them communicate alltogether.
- Java to JS communication (for updating the state of the toolbar -
text align, style, color) is OK
- JS to Java communication (for changing text align, style, color)
doesn't work as expected :
* Under Firefox, the first call of a Java method is DAMN SLOW (near 20
minutes !). The following calls are OK (1 to 2 seconds). Here is the
output of the Java console (the following message is displayed more
than a thousand times) :
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = file://
* Here is the output of the Java console under Opera :
com.opera.OriginNotAllowedException: LiveConnect origin check failed
for JavaScript trying to access Java object,
caller=file://localhost/home/user/RichTextEditor.html,
callee=file:/home/user/RichTextEditor.jar
at
com.opera.LiveConnectPrivilegedActions.originCheck(LiveConnectPrivilegedActions.java:99)
at
com.opera.LiveConnectPrivilegedActions.invoke(LiveConnectPrivilegedActions.java:37)
at com.opera.InvocationThread.run(MethodResolver.java:379)
* Under IE and Konqueror, it seems OK
Thank you for your answers