wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes File handling using Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "File handling using Javascript" Watch "File handling using Javascript" New topic
Author

File handling using Javascript

Jayanth Mathavan
Greenhorn

Joined: Nov 10, 2005
Posts: 16
Hi all,
Can anyone please tell me how to perform file handling operations like read,write to *.xml file using Javascript? Please help.

Thanks,
Jayanth Mathavan
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41151
    
  45
If you're talking about files on the client side, then there's no way to do this - JavaScript has no access to files (nor any file I/O capabilities).

Files residing on the server can be read (though nor written directly) through the XmlHTTPRequest object.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: File handling using Javascript
 
Similar Threads
How to create a file using javascript
how to reset the struts html file upload filed?
Can someone please tell me how to store a table using file handling only
file handling through javascript
GWT Error+ XFire Webservice