Proper APPLET tag for Netscape 7

T

Terri I.

I have an application that utilizes a signed applet which incorporates
the
Netscape PrivilegeManager to get access to run an executable.
It runs fine in Netscape 4.75 with the following APPLET tag:

<APPLET CODE = "LaunchHSDX" ARCHIVE = "LaunchHSDX.jar" WIDTH = 0
HEIGHT = 0 NAME = "Launch">
<PARAM NAME = "ImageFile" VALUE ="#Session.OutputImageFileName#">
<PARAM NAME = "VBCodeLocation" VALUE
="#Session.CopyPath#CopytoClipboard.exe">
If your browser supported Java applets, you would be able to copy the
map image to the clipboard.
</APPLET>

I cannot, however, get this to work in Netscape 7. I have tried
numerous
variations of the APPLET and OBJECT tags, but continue to get errors.
I have
not been able to find an example anywhere that does what I need to do
- they
all reference simple class files, not signed jar files. I also
verified that
Java plug-ins have been installed under Netscape 7.

Also, here is the line of code that calls the Java code:
<td id="copy"><img name="copy" src="#ImagesPath#copy.png"
onMouseDown="CopyReturnValue=parent.MapFrame.document.Launch.openImageinHSDX();
checkCopyStatus();" border=0 alt="Press this button to copy the map
image to the clipboard via HyperSnap application."></td>

In Netscape 7, this gives me JavaScript error either that
openImageinHSDX is
not a function or that Launch has no properties.

I would appreciate any help!!
 
N

Neomorph

I have an application that utilizes a signed applet which incorporates
the
Netscape PrivilegeManager to get access to run an executable.
It runs fine in Netscape 4.75 with the following APPLET tag:

<APPLET CODE = "LaunchHSDX" ARCHIVE = "LaunchHSDX.jar" WIDTH = 0
HEIGHT = 0 NAME = "Launch">
<PARAM NAME = "ImageFile" VALUE ="#Session.OutputImageFileName#">
<PARAM NAME = "VBCodeLocation" VALUE
="#Session.CopyPath#CopytoClipboard.exe">
If your browser supported Java applets, you would be able to copy the
map image to the clipboard.
</APPLET>

I cannot, however, get this to work in Netscape 7. I have tried
numerous
variations of the APPLET and OBJECT tags, but continue to get errors.
I have
not been able to find an example anywhere that does what I need to do
- they
all reference simple class files, not signed jar files. I also
verified that
Java plug-ins have been installed under Netscape 7.

Have you tried to give the Applet a minimum size of 1x1 ?
That may be neccessary for the Applet to be loaded correctly.
Also, here is the line of code that calls the Java code:
<td id="copy"><img name="copy" src="#ImagesPath#copy.png"
onMouseDown="CopyReturnValue=parent.MapFrame.document.Launch.openImageinHSDX();
checkCopyStatus();" border=0 alt="Press this button to copy the map
image to the clipboard via HyperSnap application."></td>

In Netscape 7, this gives me JavaScript error either that
openImageinHSDX is
not a function or that Launch has no properties.

Looks like the Javascript to Java interface is hosed, although I seem to
recall a less complex way to access the Applet's functions throught the
NAME of the Applet, by only specifying document.Launch.openImageinHSDX()
in the SAME HTML page as the Applet (you cannot crossover into documents in
other frames, I believe).
I would appreciate any help!!

Cheers.
 
A

Andrew Thompson

I have an application that utilizes a signed applet

Have you tried to give the Applet a minimum size of 1x1 ?
That may be neccessary for the Applet to be loaded correctly.

(dunno what happened with the indents.. Andrew)
Could the original poster point her NN7 at the page..
http://www.physci.org/test/JRE/javaversion10.html
and tell me if it has problems?

That page also uses a 0x0 applet (though not with
any of the complexities she describes of her own
applet)
 
T

Terri I.

UPDATE: It turns out that the problem was not with my HTML tags, but with
the fact that my signed applet was using the Netscape security classes that
were needed with Netscape 4.75 to gain appropriate privileges. Those
security classes are no longer valid with Netscape 7. I had to generate an
entirely new key, modify the applet code, and sign it with the new key, then
my tag worked fine...
 

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

No members online now.

Forum statistics

Threads
473,970
Messages
2,570,162
Members
46,710
Latest member
bernietqt

Latest Threads

Top