Hi
I think the docs are a bit unclear about this, but I had to do:
var data = res.getData();
var content = data["result"];
to get the content.
Regards,
Jan
On 01/07/2010 05:43 PM, Qoodary wrote:
> Hi list,
> I am playing with an example code.
> If a user clicks on a button , data comes via Ajax request back and should
> be shown in a table
> -------------------------------------------------------
> buttonsend.addListener("execute", function(e) {
> if (textfield1.getValue() == "") {
> alert('Please fill in a value.');
> } else {
>
> var req = new qx.io.remote.Request(
> "http://localhost/data.php",
> "GET",
> "text/plain");
>
> req.addListener("completed", function(e) {
> //alert('Done!');
> var content = e.getData().getContent();
> alert(content);
> var tabledata = qx.io.Json.parse(content);
> alert(tabledata);
> tableModel.setData(tabledata);
> });
>
> req.setParameter("suche", textfield1.getValue());
> req.send();
> }
> });
> ---------------------------------------
> In Firebug console I can see the data from database which come back but I
> can nothing see in the table.
> Also the alert(content) and alert(tabledata) is not seen.
>
> Can anybody tell me what is wrong
> best regards
> Hansjoerg
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel