Questions tagged [datajs]

datajs is a cross-browser JavaScript library that enables data-centric web applications by leveraging modern protocols such as JSON and OData and HTML5-enabled browser features. It's designed to be small, fast and easy to use.

datajs is a new cross-browser JavaScript library that enables data-centric web applications by leveraging modern protocols such as JSON and OData and HTML5-enabled browser features. It's designed to be small, fast and easy to use.

Supported OData version(s): V1-V3

Features:

  • Wrappers for creating OData GET, POST, PUT, MERGE, DELETE, and batch requests
  • Store API provides a common abstraction over a few data storage mechanisms
    • In-memory
    • DOM Storage
    • IndexedDB Storage (experimental)
  • Cache API provides a simple way of reading large paginated results into the browser
52 questions
6
votes
4 answers

dynamic queries for oData endpoint in javascript

Ok, the title is a bit of a mouthful, but it states what I'm looking for. I have an oData endpoint, and I'm interested in seeing if there are any projects out there (preferably open source, maybe based on datajs?) that let me point to the end point,…
Joel Martinez
  • 46,929
  • 26
  • 130
  • 185
6
votes
1 answer

How to load multiple named AMD modules defined in a single file?

My understanding is that it shouldn't happen, but it does. What is the most appropriate workaround for these libraries? Notes: I figured running these scripts after require.js manually (using a script tag) should work, and indeed it seems like it…
tne
  • 7,071
  • 2
  • 45
  • 68
4
votes
2 answers

How to pass authentication header to OData Service

I am following authentication method described at http://blogs.msdn.com/b/astoriateam/archive/2010/07/21/odata-and-authentication-part-6-custom-basic-authentication.aspx I am able to consume service using ASP.NET (not a problem at all). Now I would…
user203687
  • 6,875
  • 12
  • 53
  • 85
4
votes
2 answers

Add Multiple Items Such as an Array to Existing Kendo UI DataSource

I've been working on this for a few hours and cannot manage to find a way to get it to work properly. I'm looking for the proper way to add the contents of an array to an existing Kendo UI DataSource. Basically I have 4 SharePoint lists and I am…
Robert Kaucher
  • 1,841
  • 3
  • 22
  • 44
3
votes
1 answer

How to configure WebPack to support "global.window" for Breeze-Client+DataJS

I am trying to convert a project from SystemJS to WebPack which is using breeze-client and datajs (for OData support). In total, this is an angular2 application, so breeze-bridge-angular2 is also part of the project. While the SystemJS version runs…
user1211286
  • 681
  • 5
  • 17
3
votes
2 answers

DataJS library not loading in RequireJS

I am new to RequireJS, so this might be a stupid question! I am using require-jquery. I want to load the DataJS library as a module. It is a standalone library and does not depend on jQuery. This is what my HTML file start.htm looks…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112
2
votes
1 answer

OData Uri in batch returns 404, while if i go to the url provided, it works. Why?

I am using an ODataController to get my results for my queries. The Controller is defind as so: public class RunController : ODataController { [EnableQuery(MaxNodeCount = 1000)] public IHttpActionResult Get() { ... } } If i go…
Bjørn
  • 1,138
  • 2
  • 16
  • 47
2
votes
1 answer

DataServiceVersion header missing in the Http response

I am currently developing an OData service using Web Api 2 and EF6 with a Code First Approach. My controllers inherit from the normal ApiController Base. I have decorated my action methods with the Queryable attribute and have also enabled Query…
chirag kalyanpur
  • 122
  • 1
  • 10
2
votes
0 answers

OData.read not working in IE (missing headers, no data) - works in Firefox

I have a SAP Gateway system where I create OData services which I consume in a jQuery HTML5 page. When doing the HTML page, I always used Firefox to run it. Now I want the users to test the application and SAP automatically uses IE (I have IE 10…
2
votes
2 answers

Breeze.JS to use angular.js http

I am trying to make Breeze.JS to make use of angular's http service for ajax calls. I followed the the docs (http://www.breezejs.com/documentation/customizing-ajax) and applied it. However it doesn't work. Further more when I checked breeze source…
Onur Gumus
  • 1,389
  • 11
  • 27
2
votes
1 answer

DataJS Rendering Date as /Date(1363708765000)/

I am accessing the SharePoint 2010 List WCF data service via DataJS and getting back date fields as /Date(1363708765000)/ does anyone have any idea how I can process this to display a proper date? Note: I am posing here as I suspect this is a…
Robert Kaucher
  • 1,841
  • 3
  • 22
  • 44
2
votes
1 answer

Parsing OData metadata in JavaScript

Following the example provided here: http://datajs.codeplex.com/wikipage?title=Metadata%20Generation%20Sample&referringTitle=Documentation I retrieve metadata in the…
cppNoob
  • 422
  • 1
  • 5
  • 17
2
votes
1 answer

How to do synchronous OData requests using datajs?

I have a list of URIs and while iterating over that list I send OData GET requests via OData.read(). My problem is that those calls are asynchronous and I want them to be synchronous. Is there any way to accomplish that? As far as I know the…
keinabel
  • 1,002
  • 3
  • 15
  • 33
1
vote
0 answers

Httpt batch call for multiple POST operations

I am trying to do multiple $http post call and my code looks something like this: var data = [{"id": 1, "Name": A}, {"id": 2, "Name": B},...]; var requests = []; angular.forEach(data, function(value) { requests.push($http( …
Prabhakaran
  • 1,524
  • 2
  • 13
  • 21
1
vote
0 answers

Http Batch Response does not complete in Web API 2

HttpBatchResponseMessage responses never fully return on my machine, it only returns the headers but does not complete the request. I tryed the following OData sample, it works just fine on my colleagues…
1
2 3 4