Hi Alex,
just in the moment you reply to me, I have found out what I did wrong.

All was fine nad ok, except the PHP backend,, special the Array to reply.
if this matter is of interest to someone:
//data.php
first I tried it with fetchALL which is also a multi dim Array but is in
wrong context .

//this works perfect
$resultuser = $DBO->query("SELECT row1,row2,row3,row4,row5 FROM testdb");
while ($var = $resultuser->fetch(PDO::FETCH_ASSOC)){
$recordset[] =
array($var['row1'],$var['row2'],$var['row3'],$var['row4'],$var['row5']   );
}
echo json_encode($recordset);
//end php

//application.js
var req = new qx.io.remote.Request(
                 "http://localhost/data.php";, 
                 "GET", 
                 "application/json");

req.addListener("completed", function(e) {
try
                  {
                     var content = e.getContent();
                    if (content.length > 0) {
                                  tableModel.setData(content);
                          }
                  }
                  catch (ex)
                  {
                          alert("Error while receiving table data: " +
ex.toString());
                  }   
  
                  
              });
          
              req.send();

No qx.io.JSON.parse(content) is neccessary!
It is important to use "application/json" and not "text/plain"

Thanks a lot to all for your patience and help
best regards
Hansjoerg
-- 
View this message in context: 
http://old.nabble.com/Ajax-request%2C-no-data-in-table--tp27062959p27076597.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