Quantcast
Channel: Anselm Bradford » JavaScript
Browsing all 4 articles
Browse latest View live

Object-Oriented JavaScript Tip: Overriding toString() for readable object...

JavaScript has a core Object class that contains a toString() method that is called whenever a request is made to convert an object to a string (like related ECMAScript-based ActionScript). This is...

View Article



Object-Oriented JavaScript Tip: Creating static methods, instance methods

Custom JavaScript objects can have instance methods (function that are associated with a particular JavaScript object), but like other Object-Oriented languages, they can also have static methods, that...

View Article

Object-Oriented JavaScript Tip: Implementing the Singleton Pattern

The Singleton design pattern is a development approach that ensures only a single instance of a particular class is available in a system. Imagine building the game of chess, you would only want there...

View Article

How to add a webpage fade-in effect using JQuery

THE PROBLEM: HTML pages that have numerous and complex nested <div> tags and CSS can sometimes have a jumbled “assembling” appearance that happens as the page is loading and the various elements...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images