Hi,
the follow is my snipplet code:
//----------------------------------------------------------------
__arr : ['A', 'B', 'C', 'D', 'E', 'F'],
fillData : function() {
for(var k=0; k<this.arr.length; k++) {
var args = ...
var req = new qx.io.request.Xhr("/hrm/services/ActionServlet2",
"POST");
req.setRequestData({
'class' : 'InternalDAO',
'method' : 'queryCommentAndScore',
'async' : false,
'args' : args
});
req.addListener("success", function(e) {
console.log("k=" + k); // Here, the value is always
'6', why?
// BUT, My intention is to print 0, 1, 2, 3, 4, 5.
How shoud I do?
}, this);
req.send();
}
}
//-------------------------------------------------------------------
Thanks in advance!
Wang Fei
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel