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);
}
}
);
}
;