I try to get some list items in this function
updateListdata : function() {
var item;
var userpic = 0;
var userinfo;
var req = new
qx.io.remote.Requestjobs.system.Globals.processorURL, "POST",
"application/json");
req.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
req.setParameter("m", "domm");
req.setParameter("c", "getList");
req.addListener("completed", function(e) {
var j = e.getContent();
if(j["data"]) {
for(var nr in j["data"]) {
//alert(j["data"][nr]["userstatus"]);
if(j["data"][nr]["userstatus"] == 1) {
for(var item in
this.userList.getChildren()) {
//alert(item);
//alert(item.getData()[0].getUserData("USERID"));
//alert(item.getData()[0].getBackgroundColor());
//alert(item.getData().getBackgroundColor());
// var key =
e.getData()[0].getUserData("key");
//alert(item.getData().getUserData("USERID"));
}
}
}
}
},this);
req.send(); // Submit
},
but when i alert(item)
i get only numbers not an object. What is wrong?
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel