Creating A PING-Like Browser Bookmark For Feed-Squirrel

Posted August 25, 2006 at 3:05 PM

Tags: Javascript / DHTML

For those of you who post to Feed-Squirrel.com, you know that you are supplied with a URL that you can PING when you update your site. This URL will ask Feed-Squirrel to grab your RSS feed and update its internal listings. I don't like to do this automatically using ColdFusion after my actually blog posting, as I like some time to read the blog entry over before I submit. However, I also don't want to dig through my emails to find the PING URL after I am satisfied with my blog entry.

To deal with this, I have created a bookmark in my FireFox bookmarks that pings this URL without reloading the current page:

 Launch code in new window » Download code as text file »

  • javascript:(new Image()).src = 'http://www.feed-squirrel.com/ping/HTTPPing.cfm?ID=XXX'; void(0);

This bookmark creates a new Javascript Image object and then attempts to set the source to the URL that must be pinged (where XXX is my feed ID). The void( 0 ); stops the browser from actually refreshing the page. Really simple, but I am finding it very useful for updating the site.

Download Code Snippet ZIP File

Comments (0)  |  Post Comment  |  Ask Ben  |  Permalink  |  Print Page



I'm Too Young For This!

Reader Comments

There are no comments posted for this web log entry.


Post Comment  |  Ask Ben


Home   |   Web Log   |   ColdFusion   |   Projects   |   Resume   |   Job Form   |   Search   |   Contact
Epicenter Consulting - Custom Software Solutions for Business Evolution HostMySite.com - The Leader In ColdFusion Hosting