I can't seem to figure out why this block of code causes an infinite loop. I suspect that by update the html elements I am causing the load event to be re-triggered and therefore getJSON is called repeatedly. If that's the case, any suggestions on how to call getJSON when the page (or a specific element loads) without causing the loop?
$("#content").on("load",function(){
$.getJSON(url, function(data) {
$('#div1').html(data.Name);
});
});