Writing and saving the XML file on the Client Side in javascript
-
Hi everyone, I have to write an xml file which should look like the below XML file Empire Burlesque 10 Bob Dylan 10 USA Columbia 10.90 1985 Hide your heart 10 Bonnie Tyler 10 UK CBS Records 9.90 1988 Greatest Hits 10 Dolly Parton 10 USA RCA 9.90 1982 Still got the blues 20 Gary Moore 20 UK Virgin records 10.20 1990 And this file should get stored in the client location. can anyone please help it out? Thanks and Regards, Srilatha
-
Hi everyone, I have to write an xml file which should look like the below XML file Empire Burlesque 10 Bob Dylan 10 USA Columbia 10.90 1985 Hide your heart 10 Bonnie Tyler 10 UK CBS Records 9.90 1988 Greatest Hits 10 Dolly Parton 10 USA RCA 9.90 1982 Still got the blues 20 Gary Moore 20 UK Virgin records 10.20 1990 And this file should get stored in the client location. can anyone please help it out? Thanks and Regards, Srilatha
Well, Javascript can not write anything on your disk... What you can do is to use some activex control which can do this for you.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Well, Javascript can not write anything on your disk... What you can do is to use some activex control which can do this for you.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
ActiveX controls will only work with Internet Explorer, however. I bet you could do it with java. I think saving anything to the clients side in the form of an .xml document would be tricky. You might consider using one or multiple cookies.
-
ActiveX controls will only work with Internet Explorer, however. I bet you could do it with java. I think saving anything to the clients side in the form of an .xml document would be tricky. You might consider using one or multiple cookies.
Rather than writing all that client-side code, you could let your server return an XML content-type. The browser will prompt the user as to where to save the content.