473,395 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

javascript -> applet

Hello,

I have on a html page an applet. A javascript function call one function of
this applet. It works with IE but not with Mozilla or Netscape. I obtain
the following error on the java-plugin consol:

sun.plugin.liveconnect.OriginNotAllowedException: Javascript is not form the
same origin as je java code ...

This is my html code:

<script language="Javascript">
<!--
function askServerCmd()
{
return document.AppReaderLink.askServerCmd();

}
//-->
</script>
<applet CODE =" AppReaderLink.class"
codebase="."
ARCHIVE ="appredl.jar"
WIDTH =" 130"
HEIGHT =" 70"
NAME =" AppReaderLink"

</applet>

I tri with jre 1.4.1_05 and jre 1.4.2_02 and I obtain the same thing.

What I have to do?

Sincerely

Jlg
Jul 20 '05 #1
1 5493
Hi,

Jean-Luc Gyger wrote:
Hello,

I have on a html page an applet. A javascript function call one function of
this applet. It works with IE but not with Mozilla or Netscape. I obtain
the following error on the java-plugin consol:

sun.plugin.liveconnect.OriginNotAllowedException: Javascript is not form the
same origin as je java code ...

This is my html code:

<script language="Javascript">
<!--
function askServerCmd()
{
return document.AppReaderLink.askServerCmd();

}
//-->
</script>
<applet CODE =" AppReaderLink.class"
codebase="."
ARCHIVE ="appredl.jar"
WIDTH =" 130"
HEIGHT =" 70"
NAME =" AppReaderLink"
>

</applet>

I tri with jre 1.4.1_05 and jre 1.4.2_02 and I obtain the same thing.

What I have to do?

Sincerely

Jlg


This should work, because you use the APPLET tag (in other words, your
applet was developed with JDK <= 1.1.

Try to remove the leading space in the CODE and NAME attribute. This
wouldn't be the first time that IE accepts spaces in attributes, and
Mozilla doesn't. If it still doesn't work, try to browse the following
page where a working example is shown. Maybe it helps.

http://www.galasoft-LB.ch/myjavascri...LiveConnect102

Laurent
--
Laurent Bugnion, GalaSoft
Webdesign, Java, javascript: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.