blog archive contact about feed

Technorati Ping Bookmarklet

As I haven't got round to writing an interface to Technorati's XML RPC Ping for my blog yet, I've knocked up a quick Javascript bookmarklet that does the job direct from the web browser.

Drag the link "Ping Technorati" below into your webbrowser. To use it visit a page you want to ping Technorati with and then select Ping Technorati from your bookmarks. It should then redirect to Techorati's ping page with the URL of the page you have just visited.

Ping Technorati

So how does it work?

Well it's basically using embedded javascript in the URL of an href. The code is below.

<a href='javascript:void(str=location.href);if(str){location.href="http://www.technorati.com/ping.html?url="+escape(str).split("%20").join("+");}'>Ping Technorati</a>

We take the current URL and store it in the variable str. We check we have a value there, escape it and ping Technorati with it.

It's as simple as that.

Entered: 2005-05-08 21:38:10

Rob's Other Blog Entries

See other blog entries for May 2005, or an index of all blog entries.