does anybody have any idea how the Facebook notification works?
I have this code
(function retrieve_req() {
$.ajax({
url: 'request_viewer_and_its_utilities.php',
success: function(data) {
$('.internal_load_request_from_extern_page').html(data);
},
complete: function() {
// Schedule the next request when the current one's complete
setTimeout(retrieve_req, 500);
}
});
})();
the problem is that I want to send only one data and if it is found only the append the data any idea how to do that?