Subj : LiveConnect javascript supports java.io.File but not FileReader? To : netscape.public.mozilla.jseng From : Simon Taylor Date : Sun Jul 20 2003 05:14 pm Hello, I am trying to port some Javascript from a Netscape 4.x environment to Mozilla 1.4 (The code uses the "UniversalFileRead" privilege). It appears that Mozilla currently only supports some of the java classes that used to be supported in Netscape's LiveConnect. For instance, in the simple test below, I am trying to read the contents of a text file. I can construct a java.io.File object in javascript, and I can even call the getPath() method. However, I cannot then construct a java.io.FileReader object which I need in order to read from the file. (My attempt to access java.io.FileReader causes the following error in the javascript console: Error: jsdIExecutionHook is not defined) Since this worked for me in Netscape 4.x I am trying to understand what this means for the code that I want to port. Am I doing something wrong, or is it that the FileReader class is not yet supported? I would be grateful for any feedback. - Simon Taylor ------- A simple js privileges test

A simple js - java io test 2

.