Create And Write To Files With Javascript/jquery
A few days ago I started to build a 'Talk To Us Page' In c#. So, I did a few buttons and text arena options.. And it was easy as C# should be. You just use a system IO or any thing
Solution 1:
and when you clicked of a button it will write it all down to a file in driver c, or anything like that.
Forget about it. For security reasons javascript that runs in a browser has no access to client and server files. Just think of the consequences if this was possible. You visit some site on the internet and all of a sudden files start to popup up and out of existence from your hard drive. Definitely something that should be forbidden.
Solution 2:
Outside of Internet Explorer, you cannot use JavaScript to write to the local file system. This is a security feature of the sandbox in which in-browser JS runs.
Solution 3:
javascript cant access the files contents, atleat on the client machine.
here is a helpful link http://en.wikipedia.org/wiki/JavaScript#Security
Post a Comment for "Create And Write To Files With Javascript/jquery"