Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Whenever I am on the StackOverflow page, if a new answer shows up on a question I've posted the banner at the top automatically shows informing me of this. What was used to create this effect? I'm wanting to do something similar on a project I am doing as it would be very handy.

share|improve this question
Question is better suited for SO, and has been asked several times…, not only that, but it has been asked several times on MSO already… – Ian Elliott Aug 8 '09 at 15:44
I couldn't decide if it was supposed to be here or SO and since it was SO specific I hedged my bets and posted here. – RubyHaus Aug 8 '09 at 19:36
up vote 2 down vote accepted

Welp, as is required in the "I'm building a web site" question:

You should totally use jQuery.

StackOverflow uses jQuery for this stuff. While the dev team can answer definitively, it seems that they ping the server to check for an answer every 30 seconds or so (AJAX request), and if that count goes above whatever the original count was, you get a banner displayed using JavaScript.

SO is built on ASP.NET MVC as its backend, as an FYI.

share|improve this answer
I think they probably use Comet actually, not polling, but I don't know. – deleted Aug 8 '09 at 15:56
They use polling – Ian Elliott Aug 8 '09 at 15:57
Perfect. I figured it was jQuery in some form but unfortunately the extent of my AJAX experience has been via Telerik's RadAJAX libraries. I might be able to make something work between the two though. Thanks! – RubyHaus Aug 8 '09 at 19:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .