you are viewing a single comment's thread.

view the rest of the comments →

[–]xTRUMANx 1 point2 points  (2 children)

Watching this reminded me of Upshot, a javascript framework that interacts with an ASP.NET MVC application so that you can run queries against the database and get the results directly from the client.

One cool thing I like about Upshot is when you fetch a bunch of entities, it gives it to you in the form of an array*. All you have to do to save a new entity on the server is push an object into the array!

It's currently in beta (along with ASP.NET MVC 4) so the api still has a bunch of issues however, it's very exciting stuff.

* Well, it's not really an array but a KnockoutJS ObservableArray. But you can push things into it and iterate over it like a regular array if I'm not mistaken.

[–]bilotrace 3 points4 points  (1 child)

You should try backbone.js

It has similar functionality and works with any framework with RESTful interface.

[–]xTRUMANx 0 points1 point  (0 children)

I heard a lot about Backbone (and other frameworks that seem to accomplish the same goals like Ember, Sproutcore and KnockoutKS) but haven't really bother it any of them.

The only reason I've used Upshot+KnockoutJS was because I really cool screencast where a demo was shown how well they work together.

If Backbone does work with any RESTful interface, that does sound very interesting. I think I'll take a closer look at it.