Welcome to datajs

Welcome to the datajs library project! The documentation on this site should help you Getting Started quickly and provide you an Overview of the functionality you can gain by using this library, as well as detailed References on everything that's available.

If you have feedback or questions, we'd like to encourage you get in touch with the community through the Discussions section of the site.

Enjoy!

Table Of Contents

Last edited Apr 6, 2012 at 1:28 AM by ATrigo, version 69

Comments

ATrigo Jun 4, 2012 at 6:05 PM 
@JayDataOrg - Thank you for you comments and we are glad that the library proved helpful for you. We would love to hear any suggestions and additional feedback you have on the library.

JayDataOrg May 17, 2012 at 1:08 PM 
Hey Guys! I just want to share my very positive feedback, because the idea and the implementation of data.js is outstanding. We included it in our JayData library (http://jaydata.codeplex.com), it took only few days to implement the OData provider to our client-side, LINQ-like data management tool and we were able to easily hide the query building and transport layer. The OData provider is only a part of our concept (we support SQLite, IndexedDb and YQL with the same syntax), but data.js was really helpful the ship a productive tool to developers. Implementing a Northwind product editor in JavaScript and HTML5 now takes only 6 minutes: http://www.youtube.com/watch?v=LlJHgj1y0CU

I'm looking forward to seeing more useful tools like data.js! Nice job!

kashyapa Jun 5, 2011 at 2:08 PM 
Hi

Here is a step by step walkthrough of using DataJS to perform CRUD on an ODATA service. Basically highlights the request API usage.

Please go through the post and let me know your feedback/comment

http://kashyapas.com/2011/06/performing-crud-on-odata-service-using-datajs/

regards
Lohith
http://about.me/kashyapa

marcelolr May 5, 2011 at 5:46 PM 
@joycsc, can you move this over to the Discussions tab? We show the samples with literals, but you can dynamically create the array of operations to delete, and it should be easy to write a helper function that takes an array of URIs to delete and creates the correct request.

joycsc May 4, 2011 at 8:55 PM 
for batch operation, it would be nice if there is any straight forward way to pass an array object (for instance list if ID's to perform delete operation), instead of listing items statically.

marcelolr Apr 20, 2011 at 12:35 AM 
@joycsc, to delete multiple resources in a single round-trip, simply tweak the operations inside the changeset - if you look at the "Example 2" for batching on this page, just replace the "PUT" method with "DELETE" and get rid of the "data" field on each request. Of course, you can have as many requests inside the changeset as you like.

joycsc Apr 19, 2011 at 10:32 PM 
is there any way to perform batch delete? This is widely required by the web applications, when listing data are shown. Thanks.

ctaggart Apr 4, 2011 at 2:41 AM 
A live version of your OData.read example is now on my blog. http://blog.ctaggart.com/2011/04/odata-from-javascript-netflix-genres.html