Take the tour ×  I have problem creating feature count window. I
have urls stored in as json object. I iterate it with jquery and
send request to remote data. The I have featureStore which is
initially set to 0. When the request is done i try to update it
with new feature count but it only updates the last url of array
here "S". The console of handler has always last value of the
array here "S". Is there any way I can synchronize this? I think
there are mulitple request and some request returns value faster
than other without considering which url request is send. How do
I synchronize so that I can update featureStore eaxctly as the
elements in URL.                  var current ;
var featuresStore =                                       "F" :
0,                                      "S" : 0
var urls =                                           "F" : "<Fil
ter><PropertyIsEqualTo><PropertyName>Vendor</PropertyName><Liter
al>TE</Literal></PropertyIsEqualTo></Filter