And it kind of annoys me when people make threads like this with sensational titles like "Digg Copies MR!" without bothering to do any fact-checking first.
It's not that hard to do, and if someone here actually wrote one from scratch for this site then they might have spent a little too much effort. This functionality is built into the jQuery library and I implemented it on a site a few weeks ago with a grand total of about 10 lines of code.
Can you post (or PM me) the URL to your site? I'd be interested to see how much it can provide. The basic 'get new posts and add to table' is fairly simple, but there's a bit more to it than that
Can you post (or PM me) the URL to your site? I'd be interested to see how much it can provide. The basic 'get new posts and add to table' is fairly simple, but there's a bit more to it than that
I'd love to but it's an internal-only page for Purdue University's knowledge management system. The directors wanted to see what people were searching for at the present moment on the public site, how many results they were getting, and which articles they were clicking on.
You're right, there's a lot to it under the hood, but my point is that if you take advantage of a great library like jQuery then there's not a whole lot you have to do. I just looked at the MR Forum Spy for the first time and it looks very similar to what I built. It would be very simple; use the spy functionality in jQuery to get the post IDs since the last update, pass those to your ajax handler page, loop through the post IDs and for each one run a query to get the poster, the name of the thread, how many replies it has, and what forum it's in, and then echo all that out (which is handled by jQuery and does a nice fade-in). Except for the information you're getting, it's the exact same as what I made for Purdue and it only took me about 15 minutes. I'm not trying to diminish your work at all, I'm just trying to show how easy it can be if you use tools already available and don't try to reinvent the wheel.