Definitely a new problem..Can u help me..please

Dear guys...
I have a strange problem..I have a two applets in a HTML page.
1. Applet ReadCounter - signed
2. Applet ControlCenter - not signed
These two applets are packed into a jar file WHICH IS SIGNED WITH A VALID CERTIFICATE and that is referred in the ARCHIVE tag.
<html>
<head>
<script language="JavaScript">
function doIt(){
var ctrl = document.applets[0];
alert(ctrl);
ctrl.setValues(10);
</script>
<body>
<OBJECT id="prox" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "3" HEIGHT = "3" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = "ReadCounter" >
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = ARCHIVE VALUE = "allrequiredFile.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME="MAYSCRIPT" VALUE="true">
<COMMENT></COMMENT>
</OBJECT>
<EMBED name="prox" enablejavascript="true" type="application/x-java-applet;version=1.3"
CODE = "ReadCounter" MAYSCRIPT=true ARCHIVE = "allrequiredFile.jar"
               CODEBASE = "." WIDTH = "3" HEIGHT = "3"
               pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
</EMBED>
<applet code="ControlCenter" name='ControlCenter' width ="10" height ="10" archive = "allrequiredFile.jar">
</applet>
<form>
<input type=button name="test" onClick="javascript:doIt()">
</form>
</body>
</html>
When I load this page, I am
These are the methods available in those two applets
=================================================
1. ControlCenter.java(..extends java.applet.Applet) has
public void setValues(int arg)
2. ReadCounter.java(..extends java.applet.Applet) has the following methods()[...for some serialization/deserialization to happen]
public void init(){
readObject();
public void readObject()
public void writeObject()
When I load the html page, I am getting the dialog box to grant permission for the applet to read the data from the local hard disk
(Please note that the init() of ReadCounter applet is calling
readObject() which reads some values from the local drive) and I am granting the permission.
Now the problem is, I am calling a method in the ControlCenter applet by saying like
document.applets[0].setValues() from the HTML page using javascript...This method will in turn call the readObject method of the ReadCounter by having a ReadCounter object...something like
ReadCounter rc = new ReadCounter();
rc.readObject();
Now the rc.readObject() is supposed to read some data from the local hard disk and where the problem starts. The whole code works fine in IE..but in Netscape4.77/6/7.0 are not able to do this operation. My questions are
1. Is it because I have not declared the ControlCenter applet too to use the plugin? Thats why the ControlCenter class, when referred from javascript, not able to read the value from the local drive?
2.If I make ControlCenter applet also to use the java plugin then how can i invoke a method inside the ControlCenter applet using javascript?
I tried document.applets['ControlCenter'].setValues()...this is not working in Netscape versions, because once I make the ControlCenter to use the plugin, I am not able to refer the embedded object in Netscape. document.embeds[0] is not giving me any values. How do i solve this?
3. Generally, How do i refer an embedded object, which is embedded using <EMBED SRC=.....> in javascript, so that it will work in netscape? I am not able to refer it in javascript
4. I cannot set permissions within the code itself using enablePrevilege etc..for IE and Netscape..since this does not work with IE6.0 with java plugin 1.4 installed ..I cannot instruct my client to disable the plugin if any installed, to make the code work...so I cannot go for this option of com.ms.security for IE and some enablePrevileges etc. for Netscape.
Please help me out of this problem...thanks a lot in advance
Sriram.K

try adding MAYSCRIPT to your applet tag and see if it makes any difference, e.g.,
<applet code="ControlCenter" name='ControlCenter' width ="10" height ="10" archive = "allrequiredFile.jar" MAYSCRIPT>
</applet>
;o)
V.V.

Similar Messages

Maybe you are looking for

  • Migrating from crystal report 8.5 to 10.0 giving error 01S00:error

    migrating from crystal report 8.5 to 10.0 giving error I am working in migrating my cr application to 10th ver from the existing 8.5 where we have to explicitly make a query in query builder and then attach it. I was using dsn in ms odbc for oracle d

  • Solaris 10 zones databases

    I have solaris 10 installed on an E6900 server which is clustered. May someone out there help me on how i can create the containers and also how possible it is to installed different databases, ie, oracle,informix,sybase in the containers.

  • Unable to cast object of type 'System.Xml.XmlText' to type 'System.Xml.XmlE

    Hi All, We just migrated from BPC 5.1 to BPC 7.0 SP6. But when we want to run a package in the data manager we get the following error: Exception Text ************** System.InvalidCastException: Unable to cast object of type 'System.Xml.XmlText' to t

  • Performance test tool for PI

    Hi all, I would like to know if there is any spececific tool to perform Performance tests in PI. We have hundreds of interfaces and we can not perform these tests manually. Any help will be appreciated. Thanks Diana

  • Safari on Mini can't load a specific URL

    Safari cannot load "http://135antibes.dyndns.tv:81/" This address loads in the PC mode. Why not in the Mac mode