I have changed from "text/plain" to
"application/json"

Now I get back an object which I think it is correct?
But the question is why qx.util.Mime.JSON is not working like it is shown in
the examples.

<<<The table model need the data in a multi-dimensional array, so you have
to 
transform the incoming JSON data.
The data from database comes in a multi-dimensional array.
--------------data.php
....
$recordset = $resultuser->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($recordset);

<<<Which qx release you are developing against? With the 1.0 release the 
"parseQx" method is deprecated and replaced by the "parse" method.

I use version 1.0. But I also tried it with 
var tabledata = qx.io.Json.parse(content);
In the moment I do not use it because I read it is not neccessary to parse?

If I do it so:
----------------------------------------------
var req = new qx.io.remote.Request(
                 "http://localhost/PA/Mobile/data.php";, 
                 "GET", 
                 "application/json");
req.addListener("completed", function(e) {
                  try
                  {
                     var content = e.getContent();
                     //alert(content);
                     if (content.length > 0) {
                              //var tabledata = qx.io.JSON.parse(content);
                                  tableModel.setData(content);
                          }
                  }
                  catch (ex)
                  {
                          alert("Fehler bei Erhalt der Tabellendaten: " +
ex.toString());
                  }   
  
                  
              });
          
              req.send();

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

Now the table shows in the status bar 14 rows which is correct to the
entries in the mysql database.
But The rows and columns are empty.
How can I "split" the JSON content?

best regards
Hansjoerg
-- 
View this message in context: 
http://old.nabble.com/Ajax-request%2C-no-data-in-table--tp27062959p27074565.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