Backbone and Express Forgery Protection (csrf)

août 12th, 2013

With no responses/p>

I had a problem getting Node.js/Express playing nice with Backbone. It was not sending the csrf authenticity token embedded in the page when it sent create/update/delete requests, and Express was destroying the session when it detected the invalid request.

Read More

Autocomplete with jQuery plugin for backbone.js on remote api

juin 28th, 2013

With no responses/p>

The goal of today’s tutorial is to create a simple autocomplete field with Backbonejs on a remote JSON-based API. Most Backbone applications are based on Underscore.js and use jQuery as their DOM manipulation. It’s generally easy to use as Backbone’s view provide direct access to a jQuery element such as « this.el » or « this.$el » and deal […]

Read More