Posted on Wednesday, 14th April 2010, 09:36 AM, by
Chris, under
General.
This small set of scripts should give you a starting point for filtering the valid input to certain form fields to ensure that you shouldn’t end up with input that you don’t want*. Basically you’d have the following javascript functions defined: function isNumber( evt ) { valid = true; if( evt.which || ( evt.which != [...]
Posted on Friday, 09th April 2010, 11:10 AM, by
Chris, under
Coding.
Something I’ve been playing with recently that’s not very well documented is using JavaScript to retrieve and to update the current page anchor from a URL. It’s very simple to do. In order to retrieve the page anchor (i.e. get test from http://chris-miller.org/88#test: var anchor = self.document.location.hash.substring( 1 ); Setting the anchor to update, for [...]
Posted on Thursday, 08th April 2010, 03:17 PM, by
Chris, under
Coding.
I’ve been playing with mootools for a while, they’re very nice, making easy work of some nice visual tweens and effects. One thing I was struggling a bit to do was fade between two divs, having the first one fade out then the second fade in. Rather than grabbing a plugin to do it I [...]
I do a lot of web development; it’s my full time job, my hobby and a means to potentially earn some money on the side. I need a set of good tools in order to make aspects of the work easier or I’d spend my entire life at odds with what I do. A good [...]
Recent Comments