[jQuery] Re: Download a file made from a String

2008-07-15 Thread Bil Corry
aharef wrote on 7/15/2008 5:08 AM: * the file is actually displayed in the browser :( But thats solvable PHP-Offtopic ;) You'll want to serve the file with the Content-Disposition header set to "attachment" -- the headers should look something like this: HTTP/1.0 200 OK MIME

[jQuery] Re: Download a file made from a String

2008-07-15 Thread aharef
Hi Richard, thanks for pointing me to this thread I haven't found before (but searched for ;) Dang, I thought giving the "Save as"-dialogue would override security- issues ("Would you like to download this virus? OK | Cancel"). Yet I believe server-calling methods aren't even a bit saver from a

[jQuery] Re: Download a file made from a String

2008-07-15 Thread Richard D. Worth
Whatever you do, it has to involve the server. The client on it's own won't be able to handle it. See this related thread: "save as" => save contents of a textbox to a file on client's PC http://groups.google.com/group/jquery-en/browse_thread/thread/64ca14bd5ddcc86f - Richard On Tue, Jul 15, 200