Javascript doesn't allow reading or writing of files on either server or client machines( abridged quote from page6 'visual quickstart guide: Javascript for the world wide web by T Negrino and D Smith, peachpit press), so I would be surprised if you can do this in Javascript. This is mainly due to security issues.
To do this you would need to use a server-side script, (python, perl etc.), use PHP, ASP.NET, Java or use ActiveX controls that are downloaded. You may still have issues with these if the client is using XP SP2 or something similar.
You can read and write files on the browser using the FileSystemObject ActiveX control... but this works on IE only, and then only if you have allowed ActiveX to run.
However, I would not use this for amending Word documents, as they are a proprietary binary format, and you will most likely (unintentionally) break something. You might try using one of the Word ActiveX objects to see if you can edit and save your document that way (much like Greg's Excel link above).
Hope this helps,
Dan
[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.