Skip to content

Instantly share code, notes, and snippets.

@markphi2013
Created September 18, 2013 05:43
Show Gist options
  • Save markphi2013/6605005 to your computer and use it in GitHub Desktop.
Save markphi2013/6605005 to your computer and use it in GitHub Desktop.
function loadProgramStats(){
var programs = window.app.programs;
if(programs !== null){
var program = {};
for(var i = 0; i< programs.length; i++){
program = programs[i];
var programUrl = program['Program']['url'];
$.ajax({
type: "GET",
dataType: "json",
url: "/programs/getProgramStats.json?program="+programUrl,
success: function(data){
alert(JSON.stringify(data));
},
timeout: 2000,
error: vusionAjaxError
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment