How do certain services, just like google plus and facebook, check for new content without reloading the page? Whenever you are on any of those websites a new notification of a post related content just pops up without the need to refresh the page. Can someone give me some tips on how this works? :)
closed as too broad by GlenH7, gnat, Simon, Glenn Nelson, Dynamic Dec 18 '13 at 22:16
There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.
You use ajax with php. You get the rows from php and use ajax post to get the results. Let me show you: Include this in the page you want to do the reloading.
Link to ajax this will call the ajax version 1.7.2. I got this little code from the internet :( but it will suffice to show you.
And here is the div that will be refreshedLoading .....
and finally the load.php