Hi Alex,
many thank to your help.

In the meantime I read a lot of examples in the mailing list.
So I have changed my code to:
------------------------------------------------
              var req = new qx.io.remote.Request(
                 "http://localhost/PA/MobileWebJobTicket/data.php";, 
                 "GET", 
                "text/plain");


                //qx.util.Mime.JSON // if I use this, error = undefined Mime
              req.addListener("completed", function(e) {
                  try
                  {
                          var content = e.getContent();
                          //alert(content);
                          if (content.length > 0)
                          {
                              //var tabledata = qx.io.Json.parse(content);
                              //var tabledata = qx.io.Json.parseQx(content);
                                  
                                  //rowData = [];
                                  //rowData.push(tabledata);
                                  //rowData.push(content);
                                 //tableModel.setData(rowData);
                                  tableModel.setData(content);
                          }
                  }
                  catch (ex)
                  {
                          alert("Fehler bei Erhalt der Tabellendaten: " +
ex.toString());
                  }   
  
                  
              });
  
              req.send();

----------------------------------------------------------

Now I can see someting in the table, but only in the first row!
and also the output is with all content like [ { and also the
mysql database column names:
Example of alert(content);
[{"AddressField1":"guest","AddressField2":"[email protected]","AddressField3":"21400","AddressField4":"Marketing","AddressField5":"40655"},{"AddressField1":"demo1","AddressField2":"[email protected]","AddressField3":"21400","AddressField4":"Development","AddressField5":"334455"},

So I guess I have to filter the JSON output?
But if I use 
var tabledata = qx.io.Json.parseQx(content);
I receive an error.
Also if I use qx.util.Mime.JSON instead of "text/plain" I receive "undefined
Mime" ?

Next questions is, how can I split the output so that it is show in all
columns of the table?

many thanks to any help
kind regards
Hansjoerg
-- 
View this message in context: 
http://old.nabble.com/Ajax-request%2C-no-data-in-table--tp27062959p27073552.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
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

Reply via email to