Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery live notification

setInterval(function(){
  $.get("updates.php", {}, function(results){
    if ($(results).length) {
      $("results").each(function(){
        // do something with update messages
      });
    }
  });
}, 30000); // Every 30 seconds.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #live #notification
ADD COMMENT
Topic
Name
4+7 =