 Close

About me

  • LinkedIn
  • Github
  • Twitter

Articles

  • CSS / HTML
  • Javascript
  • Mobile
  • Opinions
  • Product management
  • Projects
  • Random news
  • Videos
 
Position Absolute

Thoughts about application development & technology  management

Menu 



Backbone
  • Extending 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 else) in the view constructor. // Compatibility override - Backbone 1.1 got rid of the 'options' binding // automatically to views […] Cedric Dugas No responses October 20, 2013
  • Implementing 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 on Clevertim CRM, which heavily uses backbone.js, I wanted to read about some of the real world […] Cedric Dugas No responses March 2, 2013
  • Backbone View-Model Binding This article briefly discusses how the Backbone.View class is normally used and then introduces a new class that helps makes it easy to synchronize your models and views. The Backbone.View class helps you do a couple of important things that I’ll discuss in very brief detail:  (I assume that you are already familiar with Backbone.Views) […] Cedric Dugas No responses April 30, 2012
  • 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 quite powerful. Personally the template engine provided with underscore cover most of my use cases and is enough for me, […] Cedric Dugas No responses November 29, 2011
  • Modifying your urls on the fly using the request method with sync in backbone.js Backbone provides one default url for all your types of request with your models. But what if you want to be able to change your url model that is synching with your api depending of the type of request? Well that’s what we are here to do. Backbone Sync Sync is a nice utility used […] Cedric Dugas No responses November 14, 2011
  • Working with api responses in backbone.js using parse One backbone.js behavior that was kind of upsetting me recently is the fact that it re-syncs your model after you save it on the server. You know, you just set a model you changed, save it on the server in the background and continue your day in your application. Backbone however awaits patiently the response […] Cedric Dugas No responses November 9, 2011
  • Returning a collection list filtered from an array One thing I was trying to figure out lately is if it was possible to filter a collection from an array of id’s. Imagine you got a task model that lists another sub-task model. In your task model you got an array of sub-tasks, [1,4,7]. How would you go to retrieve those models? The loop […] Cedric Dugas No responses September 12, 2011
  • Using backbone.js with jQuery UI Modals In backbone, the views control all the events that are happening “in this part of html code” (in other words, your associated template). This is really good for decoupling your code and makes for a very good code structure but can be a headache when trying to control popups. Events in Backbone are handled automatically […] Cedric Dugas No responses August 11, 2011
  • Filtering a collection in backbone.js Filtering a collection can seem a daunting task the first time, but this is in fact, really easy. There is more than one way to filter collections, here I wanted to present the solution that work best for me. Do not hesitate to comment on it, I’m always happy to improve my stuff. Of course […] admin No responses February 2, 2011