I'm not sure if this has been discussed before, but is it possible to get a file download as a response from Ajax.Request? I know you can have response txt or xml, but how would I go about requesting a file download?
Currently I'm requesting the download like this:

window.location = 'http://www.mysite.com/pdf_reports.php?id=1&mnt=05&yr=2005';



But as you know, this ties up the browser and gives me little control of the download.

Any thoughts/experiences would greatly be appreciated!

Ian Tyndall

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to