Recent Topics updating with Ajax

For those of you who, like me, spend a lot of time with the home page of PAF loaded up, refreshing to see the latest posts, I've added a little bit of Ajax to make it easier.  The middle Recent Topics column on the home page will now update every 5 minutes through an Ajax call so you don't have to refresh to see the latest posts. 

Of course if you see that it's not working like it's supposed to please let me know. 
Logged


For those of you who, like me, spend a lot of time with the home page of PAF loaded up, refreshing to see the latest posts, I've added a little bit of Ajax to make it easier.  The middle Recent Topics column on the home page will now update every 5 minutes through an Ajax call so you don't have to refresh to see the latest posts. 

Of course if you see that it's not working like it's supposed to please let me know. 

Will that mess with your "views" statistics?
Logged


Quote
Will that mess with your "views" statistics?

Total page views, sort of.  If you are on the home page for an hour and it retrieves the recent topics via Ajax 12 times it'll still only show as one page view through Analytics.  awStats will still count each access of the Ajax script though.  But the page view stat isn't as important as the user experience, and I think this is going to help that.  Plus, it should cut down on bandwidth use which will help keep the server running more smoothly.  I usually have PAF open in a tab while browsing around in another tab for a good part of the day. 
Logged


Oh, was this made for me?  lol.  I seriously leave PAF open in a tab all day and sometimes I forget it's open and it stays open all night on my computer  Big Grin  Of course I have been known to leave my email up too and even my banking information up on my work computer all weekend...  What can I say, I trust people. 
Logged


Quote
Oh, was this made for me?  lol.
It was a totally selfish feature for me.  I do the same thing and have PAF open most of the day when I'm working at home and hit refresh every few minutes. 

But I'm glad that it's a good add for you too.
Logged


It's a good add for me too, thanks.
Logged


It now updates the stats on the bottom right (posts, topics, users, online count, newest member) and also will update if you have any new PMs. 

Edit...
Oops.  Somewhere in the changes it stopped working in IE.  Guess that gives me something to work on...

Edit 2...
It should now be working in IE.  It also will put an asterisk in the title bar when there's new posts so you can tell by looking at the task bar with a window over the browser. 
« Last Edit: September 15, 2008, 06:11:52 PM by Ryan Nutt »
Logged