my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 41029
    
  43
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File handling using Javascript
 
Similar Threads
file handling through javascript
how to reset the struts html file upload filed?
GWT Error+ XFire Webservice
How to create a file using javascript
Can someone please tell me how to store a table using file handling only