Tuesday, January 27, 2009

Django documentation search bookmarklet

Here is a simple bookmarklet to search the Django documentation. To use it, simply drag this bookmark - Search Django Docs- to your browser's toolbar.

Click on the bookmark, enter a search term and you will be taken to the Django documentation search page with search results for your search term.


Disclaimer / Terms of Use

Obviously, this is not an official Django Search bookmarklet. I had created it  for my own use and sharing it with you. The search bar bookmarklet is totally innocuous, but nevertheless by installing it you agree I am not liable for anything, period, the end.

Inspired by the Prototype API Search bookmarklet from http://prototypejs.org/api.


Source Code
p=prompt('Search Django Documentation');
if(p) {
  p=p.replace(/\./g, '/');
// Location is the search query appended to the Django custom search URL
loc='http://docs.djangoproject.com/en/dev/search/?cx=009763561546736975936:e88ek0eurf4&cof=FORID:11&ie=UTF-8&hl=&sa=Search&q='+p.toLowerCase();
window.open(loc); // Open in new window
};
return false; // Inform the browser that the action of opening a URL, should not evaluate

Tuesday, January 13, 2009

Emosional Atyachar

This is cool :) First there was Dard-E-Disco and now Emosional Atayachar ...