sh************@gmail.com writes:
This is my first attempt to do some html/javascript programming and I
am totally lost. I have a questionaire form and when user clicks
Submit, I want to save the data in XML file on client side.
As others have said, that is not generally possible.
There are ways around it that works in some browsers (or rather, there
are several ways around it that each work in one browser :), but at
least the user will be asked if the page should be allowed to access
the local disk.
If the user accepts, then it works, and if they are the ones to sync
later, then they'll probably cooperate.
TiddlyWiki can save itself in both IE and Mozilla/Firefox, and with
some setup also in Opera (and possibly other browsers too, as the
Opera solution uses Java). I looked at the code some time ago, and
with some fiddling, it should be possible to duplicate the effect.
See:
http://www.tiddlywiki.com/#SaveChanges
Another option is to have the user install Google Gears, and store
the data in a database instead of a local file.
In either case, this will probably take an experienced programmer
some effort, so as a first-time user, you might be in over your
head.
/L
--
Lasse Reichstein Nielsen
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'