Thursday, 12 August 2010

To search, or not to search

If there’s one function you expect Blogger to nail it’s 'search'. Blogger after all is owned by Google whose raison d'être is the search engine. So in addition to the long standing query over whether blog searches reliably return all they should, I’m bemused that for the last few days the search widget they provide has failed to load. It’s a “known problem” apparently and Google are “working on a fix”, though I got fed up waiting and had to search for one myself. Thanks to Vagabundia the problem with the search widget was solved by signing up for an AJAX search API key then adding the following script into the head of my blog:
<script src="http://www.google.com/jsapi?key=API_KEY" type="text/javascript"></script>
An alternative to the widget, and something that works like the search function in the Blogger Navbar, would be to add an HTML/JavaScript gadget and write a little code of your own:
<form id="search-this" action="BLOG_URL/search" style="display:inline;" method="get">
<input id="search-query" maxlength="255" name="q" size="19" type="text" />
<input id="search-btn" value="Search" type="submit" />
</form>
Should I feel inclined it’s an option that allows me to style the display to my own ‘taste’ but personally I prefer the output from the widget - when it works.

1 comments: