How to push/pop arrays in Ember.js?

For working with collections, Ember.js provides an Array wrapper class, Ember.Array / Ember.MutableArray So, instead of using a plain array, use these: // JS App.obj = Ember.Object.create({ “things”: Ember.A([“1”, “2”]) }); App.obj.things.pushObject(“3”); // pushObject notifies observers // HTML + Handlebars {{#with App.obj}} <ul> {{#each things}} <li>{{this}}</li> {{/each}} </ul> {{/with}}

SproutCore vs. Cappuccino

This is an interesting question, and one that has been popping up fairly frequently on various messages groups, twitter, and even IRC. There’s a couple of ways to evaluate SproutCore versus Cappuccino, but, perhaps, some of the immediate caparisons that people look at are the following: 1) Their respective feature set 2) Ease of use … Read more

Accessibility and all these JavaScript frameworks

I use a js-framework (spine.js in my case) in my latest site. Still I make sure that non-js browsers (certainly not over zealous: think SEO) can navigate my site and digest the contents. As an example I’m going with a search-page with products being shown. Products can be paged, filtered, sorted. Of course this is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)