Hi Josef,
Mustafa already gave you most of the answers, I guess. One thing I am not
sure about:
Are you returning an array or an object from your remote request? If it is
an array, you should not use for (var i in result) {} but
var i, len=result.length;
for (i=0; i<len; i++) {
}
See
http://manual.qooxdoo.org/1.2/pages/development/antipatterns.html#do-not-use-for-in-loops-for-arrays
Cheers,
Fritz
On Mon, 31 Jan 2011, josefkoller wrote:
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
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker +41 62 775 9900 (switch board)
Aarweg 15 +41 79 675 0630 (mobile)
CH-4600 Olten fax: +41 62 775 9905
Schweiz web: www.oetiker.ch
------------------------------------------------------------------------------
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