Javascript

Javascript Dom Quirk In IE using getElementById

April 24, 2008

This is a fun one I found today – using getElementById() in IE7 to find a dom element on the page, if you are getting some interesting errors then one possibility is that you have two elements with the same id – or the same name attribute it seems.

Validate Unicode/UTF-8 Form Input (Language Specific Characters)

March 9, 2008

Validating language specific characters in user input can be a bit of a pain, especially if you are using regular expressions to filter user submitted data. Not only that, but testing your methods can also be a pain – firstly you will need some shortcuts for entering UTF-8/Unicode chars into form inputs if you are [...]