chapter31

development in a land far far away…

at the moment

History is not what happened. History is what was written down.

Archive for October, 2006

When not to use this.form.submit()

Thursday, October 12th, 2006

So ok, I’ve run into this problem in the past where I’m using an onclick event to submit a form from a button control. When you click the button you get a nice little Javascript error stating:
“this.form.submit is not a function”
Bugger…wtf?
This only seems to happen when you have a form element named “submit” already on [...]

Read the rest of this entry »

Paginating with SQL Server 2005

Tuesday, October 10th, 2006

Adam Howitt blogged recently about Pagination made easier with SQL Server 2005, have a read of his post and take the time to implement the solution as most pagination scripts I’ve seen are lazy and don’t perform well…particularly with a lot of content!

Read the rest of this entry »

Regular Expressions in JavaScript

Friday, October 6th, 2006

All about regular expressions, particularly for javascript!
click here for more

Read the rest of this entry »

Google code search

Friday, October 6th, 2006

Google have come out with yet another fantastic tool, particularly for the developers out there
google code search was released yesterday as a beta in google labs to search for public source code.
You can read more here.

Read the rest of this entry »

double-checked locking

Thursday, October 5th, 2006

Mark Kruger details a concept (with a little help from Sean Corfield) known as “double-checked locking”, in the example as it pertains to application scoped variables.
The basic premise is that normally you would put <cfif NOT structKeyExists(application, “myVar”)> logic around you setting of application variables. If the application variable(s) didn’t exist you would have a [...]

Read the rest of this entry »