Running live, simultaneous beta tests using three different browsers for my wallpost app, with added jQuery/Ajax page refresh functionality. It is kicking some SERIOUS ass already (think: live chat possibilities, with saved record of all dialogues, that can be added to any page, threaded to any topic, etc) Yeah!
.
[Already, I’d like to thank programmer Srinivas Tamada for this rockin’ code!
And additionally, very special thanks to Maruf for helping resolve an annoying IE issue:
After I modified the code, the stupid forced-caching issue of IE (which was delaying or not showing the updated list of all the latest posts) managed to get resolved. Here’s my modified code of the function:
<script>
var refreshId = setInterval(function() {
$("#page_refresh").load(‘show-comments.php?v=’+ Math.random());
}, 500);
</script>
Had (what a surprise) some issues with IE: seems the browser was forcing a cache, and not showing or delaying the display of all current posts. Fixed using some code I found (and modified) from this page: http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/ Thanks a BUNCH Maruf!!