OK, so first of all, you should first define your handler function (myReq) 
before setting it to the listener. Thats why your script is not working every 
time.

Second, their is no need to check if the e object is set, because if you do it 
in the right order your handler function will just run, if request is 
successfully received.

Third, you are lopping your result to set true or false to last column, may be 
it would be faster to send boolean instead of interger from your php code, but 
you can do it your way.

Fourth, you are dumping array in array to the table object, is table really 
accesable from their? I mean did you set the variable table at the same 
function as the request? If not just try to make table global like  var table = 
this.table = new qx.ui.....
Then use this.table.getTableModel().setData(rowData);

Regards Sak
 

-----Ursprüngliche Nachricht-----
Von: josefkoller [mailto:koller.jo...@t-online.de] 
Gesendet: Montag, 31. Januar 2011 17:54
An: qooxdoo-devel@lists.sourceforge.net
Betreff: Re: [qooxdoo-devel] I'm frustrated


Fritz,

thanks for answer. 'm a beginner in qooxdoo (see my other posts) and there
is not a lot of code in the Application.js file. I'm in test state.

There is only a window and a table coded and this request function:

var req = new qx.io.remote.Request("test.php","POST", "application/json");
   req.addListener("completed", myReq);
   req.send();
   k =0;
  function myReq (e) {
    for (var j=0; j<30000; j++){
      k++;
      if (e!=undefined)break
    }
    rowData= [];
    var result = e.getContent();
    var wndtype;
    for(var i in result){
      res1 = result[i];
      if(res1.STWANDERSTAND == '0') {wndtype = false;} else {wndtype =
true;} 
      rowData.push([ res1.STAND_ID, res1.STNAME, res1.STTRACHT, wndtype ]);
  }
    table.getTableModel().setData(rowData);
    //alert('Zugriffe: '+ k+'Länge: '+ result.length);
    return rowData;                     
 } 

No rpc! A normal remote.Request.

Any other ideas???

Thanks

Josef
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/I-m-frustrated-tp5975196p5977778.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to