I guess it depends on the behaviour you have configured in your browser
for application/pdf. What happens when you download some other PDF from
the Internet?
T.
On 01/30/2012 11:14 AM, slah wrote:
> Hello,
>
> thank you, I've added req.setMethod('POST') and it works.
>
> But the file still don't get displayed in the browser window and here's the
> header being received:
>
> Cache-Control:private
> Connection:Keep-Alive
> Content-Disposition:inline; filename="genereated_test.pdf"
> Content-Length:2875
> Content-Type:application/pdf
> Date:Mon, 30 Jan 2012 10:09:14 GMT
> Keep-Alive:timeout=5, max=100
> Server:Apache/2.2.11 (Win32) PHP/5.3.0
> X-Powered-By:PHP/5.3.0
>
> is that ok? I want the file to be displayed in a new popup window.
>
> Regards
>
>
> thron7-2 wrote
>> On 01/30/2012 01:43 AM, slah wrote:
>>> Hi all of you,
>>>
>>> I've html data generated in qooxdoo. Now I want to send it to backend
>>> (php
>>> script) to get back a pdf file.
>>>
>>> My questions:
>>>
>>> 1. What is the best way to call my php script and pass my html data as a
>>> param of the request? I've tried:
>>>
>>> var html = this.__genHTML();
>>> var req = new
>>> qx.io.remote.Request(url);
>>> req.setFileUpload(true);
>>> req.setFormField('html', html);
>>> req.addListener("success", function(e) {
>>> var req = e.getTarget();
>>>
>>> req.getResponse();
>>> }, this);
>>>
>>> req.send();
>>>
>>> but failed with 'Request-URI Too Large'.
>> Request parameter become URI parameter by default. You should use a POST
>> request and set the HTML as POST data.
>>
>>> 2. how to display the result of the request (the streamed pdf file) in a
>>> browser window.
>> If your server is returning the PDF with the right mime type, the
>> browser will handle it like any other PDF you download.
>>
>> T.
>>
>>
>> ------------------------------------------------------------------------------
>> Try before you buy = See our experts in action!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-dev2
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/How-to-send-HUGE-amount-of-data-and-get-back-a-file-tp7235246p7236127.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel