Wednesday, February 07, 2007

Update: MyVoteforPrez.com

One feature I'd like MyVoteforPrez.com to show off is a bio page for each 2008 Presidential candidate with a dynamic listing of current news articles about the candidate. I've been experimenting with the Google AJAX Search API to provide these recent news clippings. Yesterday I was able to get the AJAX Search API working the way I want it to. Basically when the bio page is loaded an Google News Search is executed for the candidate whose bio page is loaded. This is done by configuring a Google Search control to query Google News for the candidate and display a list of resulting news stories with links to the full article. Google makes it very easy to configure the AJAX search control by making the search sources and result displays configurable with simple JavaScript. In order to hide the search control I added a CSS rule and added a DOM element to show the Google branding "Powered by Google" image. Check out the finished AJAX Search control on Joe Biden's Bio Page.

No comments: