I\'m using Asp.net MVC and I want my partial view to refresh on an interval, which it does until I make an unrelated Ajax request, then it stops.
Here are a few simp
i wouldn't use setInterval to update the content, as if the content takes more than 1 second to load, you'll have multiple requests in queue..
use setTimeout after the request is complete
function sendRequest(){
$.ajax({
/** your post data code **/
complete : function(xhr, status){
setTimeout('sendRequest',1000);
}
});
}
this way the second request wouldn't be made before the first one finishes. and this should solve your problem too.