Archive for March, 2009:

JavaScript Extensions

Download code
I’ve created a few JavaScript functions that I find tend to come in handy when programming. I call them “extensions” because they extend the base window object with additional functions. I debated on namespacing these, but find that either they are used often enough that having to type a namespace every time [...]

Tags:

Leave a Comment

Excellent JavaScript Basics Reference

For those of you who haven’t found this yet, Patrick Hunlock has an excellent JavaScript reference series, covering just about everything you could want to know about strings, numbers, arrays, dates and other JavaScript basics. It also includes some tutorials on AJAX and JSON. This is where I go when I need to [...]

Leave a Comment

Creating JavaScript Classes, Part 5: The Class Function (with screencast)

View Screencast | Download code
In the previous posts of this series, I looked at using JavaScript to create class hierarchies that would include property and method inheritance, and method overrides. Today, I’ve created a single JavaScript function that will automate this process for me. This is very similar in functionality to the YUI, [...]

Tags:

Comments (7)

Creating JavaScript Classes, Part 4: Method Overrides (with screencast)

View Screencast | Download code
This post is basically a summary of the screencast, which contains more details and explanations.
I’ve shown how to create inheritance in JavaScript, both for properties and methods. Now, I’m going to talk about method overrides. That is, I want to be able to replace a method of an ancestor [...]

Tags:

Comments (2)