Web Development for 2012

Alexander Dickson - Web Developer covering PHP, jQuery / Javascript, XHTML, CSS, more

jQuery / JavaScript Articles

How to make a comparison between jQuery objects

Filed under jQuery / JavaScript. Published on Tuesday, 13th October 2009.

In my day to day jQuery programming, I often come across a comparison that would be a lot easier if I could just compare the 2 jQuery objects I have. With this short amount of code, you can!…

A new way of creating objects in JavaScript

Filed under jQuery / JavaScript. Published on Thursday, 8th October 2009.

Although I've been using JavaScript for years, the way I've gone about it has evolved greatly over time. There are a few methods of creating objects that I would like to explain. I'm going to demonstrate the different ways by doing the same thing, that is, a simple wrapper for the console.log() method provided by Firebug. It will allow you to call init() to initialise wther the wrapper will use console.log() or alert(), and it will provide public methods to addMessage(), print() and printAll().…

Determine if a jQuery selector found any objects

Filed under jQuery / JavaScript. Published on Friday, 14th August 2009.

Sometimes, it's useful to know how many objects were matched with a jQuery selector. This is rather easy by accessing the length property of the object. This is also something that makes jQuery useful - the object returned by a selector has array like properties.…

Stack Overflow Profile

view full profile »

About

I'm a web developer from the Sunshine Coast, Australia. more »