[Jslib] Does io/file.js do network file operation?

Pete Collins pete at mozdev.org
Mon Nov 3 17:25:18 EST 2003


Sudhakar Chandra wrote:
> Does io/file.js support opening a file on a remote (http) server for 
> read access?

No RemoteFile does.

eg:

include(remotefile);

function read (aURL)
{
   var rf = new RemoteFile(aURL);
   rf.open();
   var rv = rf.read();
   if (!rv)
     rv = "";
   return rv;
}


read("http://www.mozdev.org");


-- 
Pete Collins
www.mozdev.org
www.mozdevgroup.com




More information about the Jslib mailing list