« Home | Diagnosing "Serious Errors" with Windows Memory Di... » | SQL Replication and Renamed Imaged Servers » | IE7: Flickr tag search in the Search bar » | Embedding a Google Map » | New Application/User Settings Interface in VS2005 » | Using HttpListener Asynchronously » | Using HttpListener For X10 Web Interface » | Might We Suggest the Enemy? » | Rebooting the Cable Modem Programmatically Using X... » | VB.NET CM17A X10 Library From Scratch » 

Monday, February 06, 2006 

IE7: Flickr tag search in the Search bar

In the latest IE7 beta, it's simple to add a search provider to the new integrated Search bar using OpenSearch description documents and A9's OpenSearch specification. You just link an onClick event to window.external.AddSearchProvider('URL') where URL is the link to the OpenSearch description document (see this Microsoft page for more info). I think the spec and the IE implementation actually expect some kind of formatted XML back.

As far as I know, Flickr doesn't support the OpenSearch spec, but I but I put together a description document that just sticks your search term into the Flickr search results URL. You can add it to your IE7 search bar by clicking here. It's a simple one-term search (if you put two terms in, Flickr just concats them). The XML for the OpenSearch description doc looks like this:

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName>Flickr</ShortName>
  <Description>Search for pictures on Flickr</Description>
  <Url type="text/html"
  template="http://www.flickr.com/photos/search/tags:{searchTerms}/tagmode:all/"/>
</OpenSearchDescription>

    Add to Google

    This page is powered by Blogger.



Photostream

    www.flickr.com
    justinhenry's photos More of justinhenry's photos