1

I am creating quite a bit of XML with JavaScript which is then processed by variuos components. I would like to send this XML to some file and prompt the user to save it on their disk (all this happens in the browser at the client, no server interaction whatsoever). Is this at all possible? Google is not a lot of help here :(

2 Answers 2

1

Give a look to Downloadify, is a tiny JavaScript + Flash library that enables the creation and download of text files without server interaction.

Sign up to request clarification or add additional context in comments.

Comments

0

Javascript's sandbox policy restricts writing to the filesystem so you'll have to use an installed program or ActiveX in the case of your IE users (the one time IE does something extra that you need :P).

EDIT: If you can use a server you could write the file there then prompt the user to download it.

1 Comment

Yeah, I was trying to avoid the server, but looks like I will have to do exactly that :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.