Form_remote_tag and send_file


I have an existing form that calls an action which in turn creates a PDF
and sends it to the browser using send_file.

I want to change this form to use form_remote_tag so that I can set a
progress bar and once the PDF is finished, the progress bar hides and
the PDF opens.

The send_file data is being sent to the browser, but not displayed
anywhere. When I use a regular form post, it gives me an option to open
or save the file. How do I get the form_remote_tag to OPEN the file
like it does with the regular form post?

I don’t believe I am having a syntax problem. It is more of a "How to
use send_file in combo with form_remote_tag?

Any suggestions/help is appreciated.

Thank you,


mmodica at cox dot net