Browsing articles from "March, 2009"

Debouncing Javascript Methods

Mar 31, 2009   //   by Michael D. Irizarry   //   Ajax, JavaScript  //  1 Comment

What is debouncing anyways? Debouncing is any kind of hardware device or software that ensures that only a single signal will be acted upon for a single opening or closing of a contact. Imagine you have a form with a few elements that a user may access thru the tab key, on each element you have an onfocus event that will trigger an Ajax call to the server to acquire some data. You could just imagine how you could kill the server with all those Ajax calls! So that’s where debouncing comes into play. With debouncing your assuring that the method will be triggered in the element that the user intended to, although is not perfect it does work better than Throttling. Read more >>

TaskSpeed – JS Framework Benchmarking

Mar 31, 2009   //   by Michael D. Irizarry   //   JavaScript  //  No Comments

TaskSpeed is a benchmarking tool for JS Frameworks. It includes tests for jQuery, Mootools, Prototype and  Dojo. Dojo 1.3 has proven to be the fastest JS framework on common DOM operations.

Clear floats with overflow:auto;

Mar 31, 2009   //   by Michael D. Irizarry   //   CSS  //  No Comments

You have scattered the web found lots of different hacks (example: .clearfix) on how to take care of that nasty problem with your floats overlapping. When all you needed to do was use the overflow property. Using overflow:auto; on the outer div will fix this float problem. A few tweaks must be done for div’s at the bottom but it’s way better than hacking. Works for all Grade A Browsers. Note: For IE MAC use overflow: hidden; since it will always display the scrollbars. Read more >>

Make Facebook new home look like Twitters using Greasemonkey

Mar 30, 2009   //   by Michael D. Irizarry   //   JavaScript  //  1 Comment

Facebook Twitter Style is a small CSS injection to hide some parts of the new Facebook home page to make it cleaner and mimic Twitter, also hides the infamous highlights column. You can also update your twitter status from Facebook using Facebook Twitter Updates script for Greasemonkey.

Post Facebook Updates to Twitter using Greasemonkey

Mar 18, 2009   //   by Michael D. Irizarry   //   JavaScript  //  No Comments

I just finished a Greasemonkey script that I call “Facebook Twitter Updates” that lets you post Tweets from Facebooks new “Share” feature in 140 characters or less. You will be able to Tweet from Facebook using Facebooks “Share” feature.