javascript

Facebook Share button and that little annoying behaviour with zero counts

The new Facebook Share button is very cool and offers a new insightful information about your posts: the share count.
Alas, when no one has yet shared your post, the count balloon disappears in thin air. This give you layout headaches, because the widget doesn’t fill a fixed area in the page.
jQuery to the rescue! I wrote this simple code to fix the problem and show a neat “0” count beside the post. Thought I’d share for someone out there in need :)

Investigating Zoho Mail account autocomplete feature

I had a quick inspiration to check out the code Zoho Mail uses to implement the autocomplete feature that amazed me. This allowed me to get familiar with Firebug Javascript debugger.
On Settings->Common Settings->Mail accounts the field “Email ID” calls “confAccount(this)” when an /onblur/ event is triggered on it.

Subscribe to RSS - javascript