I did some reading last night and an iframe strategy appears to be the way
to go. I need to figure out which headers to set to force the files to
download and not serve.

Thanks,

Brad

> Brad,
>
> Maybe you could target an inline frame that then manipulates the DOM
> of its parent?
>
> The inline frame could be the one that throws up the open dialog and
> all the other stuff related to getting the file.
>
> It could be 1 pixel by 1 pixel and not even be noticed.
>
> HTH,
> Randy
>
> On Aug 3, 2009, at 6:55 PM, Brad Perkins wrote:
>
>> 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?
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>

_______________________________________________
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