Hi Micha,
You can use hidden iframe for this purpose...
Set iframe src to file url on button click event.
and please refer following url for catching errors in iframe
http://stackoverflow.com/questions/3705083/how-can-i-handle-errors-in-loading-an-iframe
*Thanks & Regards,*
Baskar.M
*www.theroxsoft.com*
On Thu, Oct 10, 2013 at 1:44 PM, Micha <[email protected]> wrote:
> Hi,
>
> I have a button which when pressed should execute a file download (the
> browser open a filebrowser to save the file). I do this with a
> window.open(url) call in the execute event. This works but how can I react
> on errors on the server side, for example showing a message if the file as
> not found. The window.open makes this difficult.
>
> Is there a better way to do it?
>
> Thanks,
> Michael
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel