I'm working on a AJAX page that is using a Flash based uploader for
jQuery (Uploadify, it is nice and worth a look).

When I successfully upload a document, the uploaded file details are
inserted into an area on the current page via DOM manipulation. The
details contain a link to the script that will serve the file. The link
is not a URL to a file on disk. The script reads a file designated in
the query params and serves the output.

I have something working but the interaction is not ideal. The problems are:
(1) Clicking the link takes the user away from the page where the link
appears.
(2) Problem 1 was partially solved by putting a target="_blank" which
opens a new window. that it better, but still isn't ideal.

What I would really like is to not disrupt or move away from the parent
page, and force the appearance of the standard Open dialog with either
the "Save As" or "Open With" options. In other words force the file to
be downloaded and not displayed in the browser (unless they choose Open
With <favorite browser).

Has anyone done this before? Is it simply a matter of setting the right
headers and streaming the content?

Thanks,

Brad Perkins
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to