code « Kevin Pajak – Interactive Web Developer/Designer – BLOG

Posts Tagged ‘code’

jQuery / Ajax live refresh

Saturday, January 30th, 2010

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>

Logout script

Wednesday, January 27th, 2010

Wrote my own little logout script today (gives self a tiny little “geek pat on the back” :p).

(more…)