TaskList.prototype.GetTaskItems = function() {
var t = this;
%$.ajax({
}%$.ajax({
...,
success: function(data) {...},
error: function() {
});success: function(data) {...},
error: function() {
setTimeout("t.GetTaskItems()", 30000);
}Not too sure why it doesn't work, but here's a workaround:
setTimeout(function() {
t.GetTaskItems();
, 30000);
No comments:
Post a Comment