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