hi lets say i have a groups page when i join that group it should not reload but only the contents are loaded dynamically such as before joining i cann’t post on it but as soon i hit the join btn and it is confirmed then the whole page is not reloaded but lets say posting pannel is now visible to me
or lets say i have homepage and when any one sent a PM to me my page should be able to detect that PM and show the notification
Basicaly the first part sets that the function updateData() is called every 6 minutes…
The function does an ajax call that reloads the same page… then it gets just the html content of #recentdata DIV and replaces the current one on the page…
Note that the best solution would be to make an ajax call that would output just the needed data not the entire page…