Just saw an interesting post from Ray Camden today about dynamically creating CSV files on the client using JavaScript.
What he does is create a CSV string by appending form values then uses a nifty technique to force the download.
I don’t want to copy his code so I suggest you check it out here.
It’s pretty cool!