Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript polling

var myPollingInterval = setInterval(function(){
  //make ajax request here                                         
}, 2000);

clearInterval(myPollingInterval); //stop the polling 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #polling
ADD COMMENT
Topic
Name
6+7 =