Re: javascript reading files through java

by "Cyanide _7" <leo7278(at)hotmail.com>

 Date:  Sun, 09 Jan 2000 03:27:21 CST
 To:  ilya788(at)inter.net.il
 Cc:  hwg-languages(at)hwg.org
  todo: View Thread, Original
its not really an applet, just java objects floating around in javascript, 
all run-time complilations. i've done this before with actual applets (in 
regauds to a java post a few months back). i've seen some of netscape's 
security settings being changed from javascript, but am not familiar with 
its layout or options at all. i suppose i can live with only reading local 
files, but writing to files (even offline) is proving to be a real pain. 
some checkwrite exception now, and again, i've done it exactlly the same 
with applets. guess i'll keep playing with it, thanx for the info. - 
Cyanide_7


>From: Ilya Dubinsky <ilya788(at)inter.net.il>
>To: "Cyanide _7" <leo7278(at)hotmail.com>
>Subject: Re: javascript reading files through java
>Date: Sun, 09 Jan 2000 10:56:16 +0200
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>                  Hi!
>
> >hello,
> >  i am attempting to create a file reader in javascript using java
> > objects. i am creating a URL object, sending its stream (openStream) to
> > an InputStreamReader and that to a BufferedReader. when the openStream
> > code is executed, the following error occured:
> >
> >JavaScript Error: uncaught Java exception
> >netscape/security/AppletSecurityException
> >("security.Couldn't connect to 'www.hotmail.com'
> >with origin from 'members.xoom.com'.")
> >
> >i realize there are certain restrictions for accessing files across
> >servers, but is there anyway around it short of a signed script? the URL 
>is:
> >
> >http://members.xoom.com/_XMCM/cyanide_7/JavaScript%20File%20Reader/reader.html
>          Your applet cannot open TCP connections to any place but back to
>the originating server.
>          You should sign the applet and ask for permissions if you would
>like to do it, but it'ld be better if you try a server-side solution.
>				Yours, Ilya.
>
>-----BEGIN PGP SIGNATURE-----
>Version: PGPfreeware 6.5.1 Int. for non-commercial use 
><http://www.pgpinternational.com>
>
>iQA/AwUBOHgxEdQGtbKArRTdEQJzTQCgpHWSQ/sWtTznnp6bU/loAAVpDoQAnRb7
>OEiPVwuAxXZiI01XcPxv80F9
>=wH6O
>-----END PGP SIGNATURE-----
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA