Ian Hoar – Passion for Technology – Geeking Out - Technology, Web, Toys, Games, Design, Entertainment, Gadgets, & Geeking Out

Firebug for IE

Tonight I stumbled across Firebug Lite and was ecstatic to find that all the features I use the most are available not just for IE, but pretty much any modern browser. There are other debuggers out there, but I know a lot of people really love Firebug. This fantastic tool really lets you get under the hood and see what’s going on, it’s saved me countless hours, but what would save me even more time and effort is if it was available for the browser where 95% my problems occur; Internet Explorer. Firebug was also number one on my post 14 killer web design and development tools for the Mac.

Keep Reading 

jQuery validator plugin – custom method for postal code validation

With my previous post on jQuery, I thought I would share a simple add-on method for the jQuery Validation plugin. If you are from Canada or writing a Canadian validation form with a postal code field you can use this. Just add the code below in your rules script.

// Addon method for validating postal codes. Valid
// formats are (X1X 1X1) or (X1X1X1) or (X1X-1X1).
$.validator.addMethod("postalCode", function(value) {
     return value.match(/^[a-zA-Z][0-9][a-zA-Z](-| )?[0-9][a-zA-Z][0-9]$/);
}, 'Please enter a valid postal code');

Then you can use the rules required:true and postalCode:true in your rule set.