Backbone dynamic elements

I recently discovered Backbone’s setElement function. What it allowed me to do was dynamically create a view’s container in Javascript and transfer/assign the view and its events to the new element. Using jQuery within the view initialize event: this.el = $(‘<div id=”\’newView\'”></div>’); this.setElement(this.el); $(‘#content’).append(this.el); I manipulated the this.el attribute directly, Read more…

New JavaScript book

I got my new Javascript book delivered yesterday.  My first thought was that it was quite thin (it only has about 150 pages including the appendices and index)!  I took a look at the first section, and it’s quite thorough; the author himself states that it is quite information-dense, and Read more…