What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

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
1  
Question is better suited for SO, and has been asked several times stackoverflow.com/questions/659199/…, not only that, but it has been asked several times on MSO already meta.stackexchange.com/questions/8340/… –  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. –  digitall Aug 8 '09 at 19:36

1 Answer 1

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! –  digitall 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 .