Perhaps its not possible. I would at least be suprised it would work in all
the browsers qooxdoo currently works in.
The fact is, its not the browser dealing with the headers. Its your
application.

I would go for an iframe... you can make them very small or not visible at
all :-0
Or you can use as a sort of status-bar. This way the server renders a
message and the file. (for example... starting download file bla bla..)

Depending on your back-end you can even monitor how much of the file has
been downloaded yet ;-)
Just use your own script to manage the download. Assuming the server pauses
your script when its buffer is full.

Greetings
Ralf.

2006/11/30, Lumir Stol <[EMAIL PROTECTED]>:

Hi list,

sorry for bothering (2nd question in during of 2 days), but I can not
figure out, how to force browser will offer saving of file sended by
server as attachment.

Request is caused by

        new qx.io.remote.Request(url, 'GET', 'text/plain').send();

and code for response in backend (PHP) is

        header('Content-type: text/plain; charset=utf-8');
        header('Content-disposition: attachment; filename="test.txt"');
        readfile('test.txt');
        exit;

I can see correct content of this file in FireBug console off course and
relevant headers are:

        Transfer-Encoding: chunked
        X-Powered-By: PHP/4.4.4
        P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
        Content-Type: text/plain;charset=utf-8
        content-disposition: attachment; filename="test.txt"
        Server: lighttpd/1.4.13


Is here anyone who can see some mistake in above code, please?

Or it is juts not possible and I have to use nativewindow or iframe?

Many thanks.

Lumir

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to