Vote count:
0
I am not quit sure how to word this properly but i will try. I have function call that returns data and one of the elements within the data is an array of elements each of those elements have an ID.
I have another function call that gets the status of each of the elements within the array from above function call. In order to get the status i need to pass in the element's Id for me to return the status of that element.
How can i accomplish this properly? by passing in the array of elements and then looping through it in the second function call or what?
getData = function(items)
{
ajax.Get({
Url:.....,
DataType: "json",
OnSuccess: function(data){
......
getStatus(elementsArray);
}
});
}
getStatus = function(elementId){
ajax.Get({
Url:..... +'?elementId=' + elementId
DataType: "json",
OnSuccess: function(data){
}
});
}
how can i properly pass in the element id for each of the elements in the elementarray to return its status?
asked 46 secs ago
Aucun commentaire:
Enregistrer un commentaire