Locating Bugs in Your Javascript Code

If you’re anything like me, you have traditionally used javascript alert boxes to try to identify and diagnose bugs in your javascript code. There are two major issues with this process, though.

  1. It’s extremely inconvenient for your users if you’re trying to debug a live application.
  2. It can be a real problem if you end up in some sort of long/infinite loop and end up outputting multiple alert boxes.

There is a better way, though, and it basically works in Internet Explorer (version 8), Firefox (with the Firebug extension installed), Chrome, Safari and Opera. This is nothing new, by any strecth of the imagination, but it still seems to be a bit of a well-kept secret for a lot of developers.

Use HTML5 Elements in Today’s Browsers

I am taking John Allsopp’s HTML5 Live course offered by SitePoint (a great deal, by the way), right now, and he shared a neat little tip that I wanted to pass on. You can use many of the new HTML5 elements (header, article, section, etc.) right now, even in older browsers like Internet Explorer 7.

All you need to do is add an extra “boolean attribute” to the element, and you can then style them with CSS in almost all of the browsers currently being used.

My Response to the IE8 Comparison Chart

Earlier today, Allen posted a story about Microsoft releasing a chart comparing IE8, Firefox 3 and Chrome (who knows which version). Following is my response to that chart. I would say that I’m disappointed not to see Safari included in this comparison, but since much of the comparison is spin and misinformation, there wouldn’t be much point.

Internet Explorer 8 Released

Microsoft publicly released the “final” version of Internet Explorer 8, today. Hopefully this will help decrease the amount of users still plodding along with IE6 and convince them to upgrade to either IE7 or IE8. One the main Web site for which I am responsible, IE6 users still make up nearly 25% of our visitors.

If you haven’t already, head on over to Microsoft’s Web site and download IE8. Hopefully IETester will be updated with the final version, soon.