Send_file using AJAX


#1

I have a AJAX based form and when I use send_file there is no pop-up
that appears to prompt user to download file… how do I fix this?

Regards,
Sudhindra


#2

On 26 Mar., 07:25, Sudhi K. removed_email_address@domain.invalid
wrote:

I have a AJAX based form and when I use send_file there is no pop-up
that appears to prompt user to download file… how do I fix this?

http://www.catb.org/~esr/faqs/smart-questions.html#beprecise


Best regards,
David K.
http://twitter.com/rubyguy


#3

Sudhi K. wrote:

I have a AJAX based form and when I use send_file there is no pop-up
that appears to prompt user to download file… how do I fix this?

Did you Google for that first? It’s a FAQ in Ajax-land, because browsers
have
security constraints that prevent JavaScript from manipulating file
input elements.

The answer is do old-fashioned Ajax that bypasses JavaScript. When a
form’s
target field is the name of a 1-pixel

Google for that FAQ to learn how to update your page after the call,
because I
forget.


Phlip
http://www.zeroplayer.com/