Accessing a variable in another file & file ops.

Giganews Newsgroups
Subject: Accessing a variable in another file & file ops.
Posted by:  ptrl…@hotmail.com (Peter)
Date: 12 Jul 2003

Hello,

Two newbie questions:

1) I have a javascript file with a function in it. From this function
I want to access a variable in another javascript file -which is not
inside a function. I have tried many combinations to do this, but has
yet to try the right one. How is it done?

2) What kinds of file operations can be done in Javascript (save,
read, write)? As far as I know all file operations are possible using
Java within your Javascript. But can't it be done using Javascript
only? (I'm talking file operations on my own files on my ISP's
server).

Thanks
/Peter

Replies