Category Archives: Javascript

October 1, 2006
Javascript function properties

Javascript is pretty cool and I’ll admit that I don’t get to do as much as I’d like with it. Today I’m going to briefly cover a few properties of any Javascript function which you can take advantage of: arguments callee arity arguments The arguments property contains an array of input parameters which may be [...]

September 28, 2006
Javascript parseInt() quirk

I ran into a little quirk or ‘bug’ today when using parseInt() with a string (input from a text box). Now as we all know parseInt() parses a string and returns an integer value. The scenario: I was working on a legacy application where a user could pass a date to the server in 3 [...]

September 19, 2006
Trimming strings with Javascript

Ben Nadel has a nice post on trimming strings with javascript using regular expressions. Note that the reg exp white space character ‘\s’ is used to match: space tab horizontal tab vertical tab line break Sample code below: Javascript: trimString.js Update 25th March 2007: A basic breakdown: /…/ Regular expressions in javascript are delimited with [...]