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