Browsing articles from "April, 2009"

JS detecting event support in browsers

Apr 3, 2009   //   by Michael D. Irizarry   //   Ajax, JavaScript  //  No Comments

As you may know there is no easy way of detecting which elements supports which events across browsers. Kangax from Perfection Kills has come up with a very clever way of detecting them.

JavaScript

 
  var isEventSupported = (function(){
    var TAGNAMES = {
      'select':'input','change':'input',
      'submit':'form','reset':'form',
      'error':'img','load':'img','abort':'img'
    }
    function isEventSupported(eventName) {
      var el = document.createElement(TAGNAMES[eventName] || 'div');
      eventName = 'on' + eventName;
      var isSupported = (eventName in el);
      if (!isSupported) {
        el.setAttribute(eventName, 'return;');
        isSupported = typeof el[eventName] == 'function';
      }
      el = null;
      return isSupported;
    }
    return isEventSupported;
  })();

Use

isEventSupported(<"Type of Event>")

For a more detailed description visit Kangax blog

DiggBar Launches Today!

Apr 2, 2009   //   by Michael D. Irizarry   //   Web 2.0  //  No Comments

In an attempt to make your life easier Digg is rolling out today what they call the Diggbar. One of the cool features that will get anyone’s attention is the ability to shorten urls a service provided by apps like bit.ly and tinyurl.

DiggBar from Kevin Rose on Vimeo.
The DiggBar allows you to…

  • Digg directly on the destination site: No more awkward toggling between the story page and Digg.
  • Easily share stories: You can now create a shortened Digg URL to share on Twitter, Facebook or via email. You can also type digg.com/ before the URL of any page you’re on to create a short URL.
  • Access additional analytics: See how many times a story has been viewed.
  • View comments while on the story page: Clicking the ‘Comments’ button expands the DiggBar to show the top comment, latest comment, and most controversial without leaving the page.
  • Discover related stories: Clicking the ‘Related’ button expands the DiggBar to highlight similar stories.
  • See more stories from the same source: Clicking the ‘Source’ button expands the DiggBar to show you more Digg stories from that source site.
  • Discover random stories: Click the ‘Random’ button and you’ll be brought to an entirely new, unexpected story.

NameChk.com Checks your username across social networking websites

Apr 2, 2009   //   by Michael D. Irizarry   //   Inspiration, Web 2.0  //  No Comments

NameChk.com has a few uses you can either check a username availability across the social stratosphere or you can use it to track your friends (If you know they’re username). Checks the most common used social networks like MySpace, Youtube, Bebo, LiveJournal and many, many more.

iPhone 3.0 SDK beta 2 now available

Apr 1, 2009   //   by Michael D. Irizarry   //   iPhone  //  No Comments

iPhone SDK 3.0 beta 2 and iPhone OS 3.0 beta 2 are now available on the iPhone Dev Center. These versions are for development and testing only and should be installed on devices dedicated to iPhone OS 3.0 beta software development.

Pages:«12