Handling “variable is not defined” with underscore template engine
One of the cool thing with backbone.js is that you can plug in about any javascript templating engine there is. Also another nice extra is that there is one already bundled with underscore.js that is...
View ArticleGetting started with web mobile using backbone
Just found out a nice article about getting started from scratch on mobile using backbone.js. While normally I would not advocate rolling your own “framework”. I feel like mobile doesn’t need much to...
View ArticleThere is no magic behind backbone.js model.isNew()
model.isNew() can be quite useful, this method can be interesting when handling and changing forms behaviors from adding new items, to updating and deleting them. At first I did not quite understand...
View ArticleOptimizing the views list creation with document fragment
Before using backbone when working with a list of html nodes I always made it my duty to append them only in one big chunk of text. Manipulating the dom is slow, it triggers a reflow of the page, this...
View ArticlejQuery Mobile and backbone.js, the ugly
jQuery Mobile is a great technology, no doubt it can be an integral part of the future like jQuery is today. However even if the 1.0 version is out after more than a year after the alpha has been...
View ArticleUsing backbone.js in my first product, what I learned
This week I launched an online wedding planner called WeddingDeck. Weddingdeck has backbone in it’s heart. There has been ups and downs while using it, and I wanted today to talk about a couple of...
View ArticleImplementing live updates with Backbone.js
I don’t know about you, but backbone.js always left me crave for more. It’s the simplicity of it that makes me want to learn how others are using it to solve real world problems. When I’ve started work...
View ArticleHandling multiple collection.add events in a batch
I had this problem in a web app where I would fetch a list of new models for a collection & those model would inevitably trigger the add event that would add them separately on the page. However as...
View ArticleReleasing Backbone Mobile Components
Doing mobile web apps can be challenging, not that it’s really harder than doing desktop style app, it’s just different. When doing mobile web you need to focus on simplicity & performance. When I...
View ArticleExtending Backbone.js constructors, the easy way
One thing that really is really annonying with backbone 1.1 is the fact that the options are not passed has this.options anymore in the Backbone.View. Well simply enough we can add this (or anything...
View Article