11

I've been looking into backbone.js lately and like both the philosophy and the execution a great deal. Is anyone using Backbone on HTML5 IOS interfaces?

What are your experiences with this approach?

RSG
  • 7,013
  • 6
  • 36
  • 51

5 Answers5

7

I've used JQuery Mobile UI with backbone.js. The problem is they both have their own hashchange router. If you can live without the backbone router or figure a way to cut out the JQuery one then it works out well.

bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
  • Thanks for the heads up, I'm sure you just saved me an hour of future head scratching. I poked into the code a little bit- it's a real mess. Basically you have to choose between respecting the UI state or the data state of the application, right? Meshing the two would be a nightmare. – RSG Apr 02 '11 at 17:19
  • 1
    Actually since then I've dropped JQuery mobile totally and rolled my own CSS and just use vanilla jquery and a custom backbone page layout util. I've pasted the code here I use, sans css, https://gist.github.com/1027122 – bradgonesurfing Jun 15 '11 at 13:49
3

I think Basecamp from 37 Signals is the best example of a complex app using backbone (and other awesome frameworks): http://37signals.com/svn/posts/2761-launch-basecamp-mobile#comment_63518

I do not have first hand comments on this unfortunately.

Julien
  • 9,216
  • 4
  • 37
  • 38
  • "Basecamp Mobile is written in CoffeeScript using our in-house Cinco mobile framework, which ties together Backbone.js, Zepto, the Eco templating language, and Stitch." You can't develop on Rails and not respect the work the 37signals team does, I can't wait to see if they are as effective at mobile as they are with web. – RSG Mar 31 '11 at 22:30
3

I've found a project on github ( https://github.com/azicchetti/jquerymobile-router ) that provides a router for jquery mobile.

It's perfect with backbone.js, it's almost a replacement for its controller, so we can finally use the full backbone.js potential in jquery mobile.

n00ll
  • 94
  • 2
3

Many of the trigger.io (a cross-platform framework) demo apps make use of backbone.js

Scott Evernden
  • 39,136
  • 15
  • 78
  • 84
  • Yep, we've blogged a tutorial on how to use backbone.js for mobile web apps and with hybrid frameworks like Trigger.io: http://trigger.io/cross-platform-application-development-blog/2012/03/02/how-to-build-fast-html5-mobile-apps-using-backbone-js-zepto-js-and-trigger-io/ – Amir Nathoo Apr 30 '12 at 18:38
0

I used Backbone.JS + jQueryMobile on iOS/Android. Works pretty fine. Check out my blog post:

Peter O.
  • 32,158
  • 14
  • 82
  • 96
Vadym Myrgorod
  • 456
  • 1
  • 4
  • 11