views:

83

answers:

3

Hi,

Is reddit's join popup that appears on the page hidden on the page or is it injected via ajax?

How do they do it? (general terms if someone out there knows, I will dig into the source myself but need some guru pointers).

+1  A: 

For reddit, its a hidden element. You can use tools like Shadowbox or nyroModal to achieve this kind of effect (since you can adjust the animation)

Ólafur Waage
+1  A: 

Its not so much AJAX as it is javascript, and it is generally refered to as a Lightbox or a Dialog

bendewey
A: 

It's there but hidden with CSS, and shown with Javascript. With jquery, you could achieve the similar effect by triggering:

$('#join_div').show();

Try to view the page with CSS disabled and you'll see it's at the bottom of the page. (Optionally, you could try viewing the source.)

andyk