Re: applet can't read files in document base with IE & Sun Java 1.4.2

From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 07/28/04


Date: Wed, 28 Jul 2004 04:51:40 GMT

On Tue, 27 Jul 2004 22:35:09 +0200, RowdyRednose wrote:

> Here are the file contents of a stripped-down example so anyone can
> reproduce the problem.

I did yes, and I think I have found the problem..

> <applet id="myapplet" archive="ma.jar" code="MyApplet" width="10"
> height="10"></applet>
> <input type="button" value="open" onclick="myapplet.open()"/>

I did not look closely at your HTML, just
copy/pasted and saved. When I loaded it I
was surprised to see the button which was
not mentioned in the applet code..

To be honest I did not realize you could call
an applet like that (though I am familiar with
the existence of direct applet/JS interaction)..

In any case, that seems to produce a more
constricted Security manger. I clicked your
button and saw the errors you mentioned, then
I moved the call to 'open()' into an 'init()'
and everything seems to work as intended,
you get an URL back and the file contents..

HTH

-- 
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology