Will that work with the stand-alone Flash player?

On Fri, Nov 7, 2008 at 10:59 AM, Gregor Kiddie <[EMAIL PROTECTED]> wrote:

>  You can keep the Javascript and use an ExternalInterface to communicate
> with it.
>
> Alternatively, use navigateToURL to call the required URL and pass it the
> correct window so the browser handles it.
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:       01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> [EMAIL PROTECTED]
>   ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Glenn Jones
> *Sent:* 06 November 2008 19:19
> *To:* [email protected]
> *Subject:* [flexcoders] httpservice/save-as question
>
>
>
> I already have working code that uses HttpService to send various requests
> to the backend from my Flex client
> and process the responses.
>
> I also have a customized implementation of the flex DataGrid which
> implements paging such that the flex client
> only shows one page of data at a time.  The customized control has buttons
> to issue page forward/backward
> requests to the backend to get a different page of data.  These requests
> are sent to the backend with HttpService.
>
> I have a requirement to save all pages in CSV format on the clients
> desktop.
>
> Prior to flex we had an HTML/Javascript implementation of tables which had
> the same sort of feature - in that version,
> the backend would retrieve all of the data, format into csv, and change the
> content-type on the HTTP response header
> to "text/csv" and then setting the content-disposition to "attachment,
> filename=file.csv". The net result was that the browser
> itself would take care of displaying a dialog that says something like "Do
> you want to open or save this file?"
>
> I haven't been able to get the same sort of behavior to work with a request
> generated by the Flash Player. I have my code
> in the backend modify the HTTP headers in the response to my flex
> export-to-csv request, but the browser neers displays
> its open/save dialog - the response always gets directed back to the flash
> player.
>
> Is there a way to make this work?
>
> Thanks,
> Glenn
>
> 
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood

Reply via email to