How to build fast HTML5 mobile apps using backbone.js, zepto.js and trigger.io
trigger.io
trigger.io
I am a javascript developer, Trigger.io seems cool, and I wouldn't mind paying to make it easy to write in coffee instead of java and objective c, but I wouldn't want a splash screen and wouldn't want to be locked into a subscription.
But we ask for the subscription payment as long as you keep distributing the app if it is a paid app or if you want to put your own splash page in.
// This fix was hard-won - // just doing .css(property, '') doesn't work! $old.get(0).style["margin-left"] = "" $old.get(0).style["-webkit-transform"] = ""
What wasn't working and how this lines solved the problem?
It's fine for a quick demo, but that’s definitely not where such logic belongs for any kind of maintainable project.
Edit: I didn't post this to just promote my app. I noticed that there's no android market link on the blog post and thought some people might like to try out a backbone.js app without having to build it. I know it's not the same, but I do think it shows how responsive an html5 mobile app can be.
If, however, you are referring to the weak link between Zepto-managed DOM and Backbone Views via hand-rolled render functions, then check out outback.js, a declarative data binding layer for Backbone in the same spirit as Knockout.js - well, more than spirit, the binding extensibility layer uses roughly the same API and much of the same documentation.
One idea I had was to take the CSS from Sencha /KendoUI / jQTouch and combine with the components above to create a 'Backbone Mobile' framework. I just haven't had the time yet to figure out if this would work.
(Yes, this really works. I use it in production.)