Is there a way I can include the variable 'schedule_id[i]' in the result of this call? Can I also add this variable to the data object?
Here's my code:
for (var i = 0; i < schedule_id.length; i++) {
//Making an AJAX request
$.ajax({
url: "http://api.viewer.zmags.com/schedules/" + schedule_id[i] + "?key=" + api_key
})
//
.done(function(data){
}