Activate your free membership today | Log-in

Monday, July 24th, 2006

Popup Politicians AJAX Widget

Category: Showcase

<p>The Sunlight Foundation has released an AJAX Widget called Popup Politicians.

This prototype consists of a callable remote API for getting info about politicians, and a tag-popup script which uses that API.

sunlightlabs.com_popuppoliticians.jpg

Usage
Add the following to your head element:

HTML:
  1. <script src="http://sunlightlabs.com/popuppoliticians/sunlightpopups.js" xml:space="preserve" type="text/javascript">
  2. </script> 

Add links to your politicians like so:

HTML:
  1. <a href="http://sunlightlabs.com/tag/Sen.+Edward+M.+Kennedy" rel="tag">Sen. Edward M. Kennedy</a>

When the script runs, it finds all the tags that look like the above, and adds a popup. For more information, look at the source of this page and the sample pages.

From a look at the code, it seems that it is using the On-Demand Javascript pattern to create the popups. In any event, it's refreshing to see an application of AJAX that doesn't involve social bookmarking or comparison shopping.

Related Content:

Posted by Dietrich Kappe at 4:41 pm
6 Comments

++++-
4.1 rating from 56 votes

6 Comments »

Comments feed TrackBack URI

nice pop-up. but, what should i do if i have to put this popup for my own content and style the pop-up my way?.. the api should be more open and ready to be improved.

Comment by Google Logs — July 25, 2006

[...] Muy buena herramienta para complementar la información que ofrecemos a nuestros usuarios, mediante pequeños pop-ups similares a los que mostramos en Google Maps. Via [...]

Pingback by aNieto2K - » Pop-ups a lo Google Maps en tu web — July 25, 2006

[...] Ajaxian on Popup Politicians. [...]

Pingback by Starked SF » Blog Archive » Talk of the Town: Tuesday — July 25, 2006

i want to see how it make it.
if this pop-up do better.i will use it.

Comment by bean — July 25, 2006

alert(document.cookie);

Comment by kim — July 26, 2006

Sounds like any of the zillion numbered tooltip widgets in existance out there… :)
Nice though!
We’ll put one in for our Q3 release! :)

Comment by Thomas Hansen — March 11, 2007

Leave a comment

You must be logged in to post a comment.