Page 1 of 1

Write to XML file using Javascript

Posted: Mon May 25, 2009 7:25 pm
by mobone
How would I edit my xml file using javascript? Would I use the fopen commands? How would I go in and edit certain elements for example find <cherry>red</cherry> and make the red be blue?
I've been looking for a while now and cannot find much. Thanks for your help.

Re: Write to XML file using Javascript

Posted: Tue May 26, 2009 1:11 pm
by mobone
Is having ajax interact with my php code that writes to the xml the only way I can do it?

Re: Write to XML file using Javascript

Posted: Tue May 26, 2009 8:40 pm
by JAB Creations
Unless you have a special plugin for a browser JavaScript has absolutely no file system rights. Consider the fact that ActiveX is the primary reason spam exists to the extent it does today.