Browsing the archives for the JavaScript category

Event scoping with jQuery in OOP: Controlling the value of ‘this’

One of the things I have always liked about jQuery since I first started using it is how easy it is to bind events to elements, and have easy access to the bound elements via “this”. However, when you start programming object oriented JavaScript, you lose access to the object’s “this” unless you use closure: […]

December 30, 2009 in JavaScript

Javascript Templates

Just found John Resig’s javascript templating engine, even though it’s been around a while: http://ejohn.org/blog/javascript-micro-templating/

November 20, 2009 in JavaScript