Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File handling using Javascript

 
Jayanth Mathavan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic