For some reason I forgot to change the server service to accept GET
requests. The following code does not have the problem described above:
var req = new qx.io.remote.Request("/library", "POST");
button.addListener("execute", function(e) {
req.setData("isbn=" + isbn.getValue());
this.debug(req.getData());
req.send();
});
req.addListener("completed", function(e) {
resp = qx.util.Json.parseQx(e.getContent());
this.debug("done");
this.debug(resp);
});
Sorry for the post ...
-deech
On Wed, Jun 17, 2009 at 3:46 PM, aditya siram <[email protected]>wrote:
> And the debug statement 'this.debug(req.getData())' correctly outputs the
> 'isbn' parameter and its value.
>
> thanks ...
> -deech
>
>
> On Wed, Jun 17, 2009 at 3:43 PM, aditya siram <[email protected]>wrote:
>
>> Hi all,
>> I have the following snippet of code [1] that send a GET request with data
>> field 'isbn' to the server. However Firebug does not show the parameter at
>> all. Instead it shows only a nocache parameter in 'Parameters' and something
>> about a POST message in 'Response' [2].
>>
>> Has anyone seen this before?
>> thanks ...
>> -deech
>>
>> [1]
>> var req = new qx.io.remote.Request("/library", "GET");
>> req.setData("isbn=" + isbn.getValue());
>>
>> button.addListener("execute", function(e) {
>> this.debug(req.getData());
>> req.send();
>> });
>>
>> [2]
>> Firebug needs to POST to the server to get this information for url:
>> * http://localhost:3000/library?nocache=1245271092522*
>>
>> This second POST can interfere with some sites. If you want to send the
>> POST again, open a new tab in Firefox, use URL 'about:config', set boolean
>> value 'extensions.firebug.allowDoublePost' to true
>> This value is reset every time you restart Firefox This problem will
>> disappear when https://bugzilla.mozilla.org/show_bug.cgi?id=430155 is
>> shipped.
>
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel