New JavaScript library for OData and beyond

Microsoft just announced a new project called 'datajs'. datajs is a cross-browser JavaScript library that among other things brings comprehensive OData support to JavaScript. 'datajs' is an open source project, released under MIT.

For example if allows you to query an OData service like this:

OData.read("http://odata.netflix.com/v1/Catalog/Genres", function (data, response) {
//success handler
});

And do inserts like this:

OData.request({
method: "POST",
requestUri: "http://ODataServer/FavoriteMovies.svc/BestMovies"
data: {ID: 0, MovieTitle: 'Up'}
},

function (data, response) {
//success handler
});

For more information check out the announcement

  1. Gravatar of Christopher Christopher
    Posted Friday, April 01, 2011 at 1:41:20 AM

    Sorry for repost, I added comment to wrong post, doh!<br/> <br/> Is datajs - JavaScript Library for data-centric web applications a library to use with the oData Javascript SDK cod, the same thing or a replacement.<br/> <br/> Thanks,<br/> <br/> Christopher

  2. Posted Tuesday, March 01, 2011 at 10:01:46 AM

    Thanx a lot this one. It might help me by the way ...!