Click to See Complete Forum and Search --> : JavaScript File I/O
xeifrank
11-30-2002, 06:39 PM
Does JavaScript have any file input/output capabilities?
In particuliar, I am going to write a program where I need to read a large amount of data from a file. Does JavaScript allow for reading data from files?
If so what is the syntax.
THanks
Xeifrank
Rick Bull
12-01-2002, 06:34 AM
Not client-side JavaScript I'm afraid.
sharpasknives
12-01-2002, 10:59 AM
what about server side javascript? :confused:
xeifrank
12-01-2002, 01:30 PM
Basically, I am making a webapge, uploading it to my ISP server. I have a JavaScript program in the webpage. I have alot of data that I need to use in this JavaScript program. Do I have to hardcode the data in the JavaScript code? Is there any way to put this data in a file and read it?
Thanks,
Xeifrank
you could put the data into hidden form fields and then submit the form to a perl script through a javascript submit command (document.formname.submit();).
sharpasknives
12-02-2002, 01:38 PM
i need this function but i dont wanna code it in because its for a forum. i tried using php and mysql but i couldnt get the mysql to wrok (truth is i didnt even know how to use it :))