Category Archives: Javascript

September 28, 2007
jQuery and SWFObject conflict

I experienced some strange behaviour today when building a site which was using jQuery and SWFObject. Our Flash files were loading ok and 99% of the javascript (using jQuery) was working fine.
The problem was found only in IE (sound familiar?) with the following code:

$(document).ready(function(){

$(‘#submitButton’).click(function(){

When the ’submitButton’ was clicked, this function was not firing in IE. [...]

March 25, 2007
The ‘coolest’ DHTML calendar– also posted in (X)HTML

As web developers we are often some of the first people to see the newer techniques and tools available for use in web applications. This can be great as we can then hurry off and implement these things into our new projects.
But of course there are still millions of older sites (which will no doubt [...]

December 7, 2006
Including js files from within js files– also posted in (X)HTML

I’m working on an application which stores a lot of data in the application scope. Part of the data stored is a config CFC that has a method which loads ‘external assets’ (javascript and css files etc) into the <head> of the html document via <cfhtmlhead>. I love that tag
My part in this [...]

October 12, 2006
When not to use this.form.submit()

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 [...]

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 passed to the function. It [...]