0

I'm using this method to refresh content of users uploads but i've seen twitter facebook does not actually follow this type of process..they auto refresh the content or auto update the only content as soon as data is inserted to their database.

How its possible because I've seen in twitter's process by inspect element there are no background script running or any ajax pending request !!

what is this type of scripting known as ??

  $(document).ready(function(){
    display();
  }
                   );
  function display(){
    $.ajax({
      type:"GET",
      url:"display.php",
      async:true,
      cache:true,
      timeout:1000,
      success:
      function(data){
        $('#display_content').html(data);
        setTimeout(display,100000);
      }
    }
          );
  }
  ;
Styli
  • 1
  • 6
  • Take a look at Web Sockets: https://developer.mozilla.org/en-US/docs/WebSockets – David Sep 29 '13 at 13:34
  • [Push technology](http://en.wikipedia.org/wiki/Push_technology) – Artyom Neustroev Sep 29 '13 at 13:36
  • I saw all this...seems that comet needs some extra software and we have to buy those services (Correct me if i'm wrong)... I'm using Apache shared hosting So, is there any easy free way to do this ? – Styli Sep 29 '13 at 14:13

0 Answers0