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
1
vote
1 answer

How to read OData v4 endpoint with odatajs?

I'm trying to read simple OData v4 endpoint with Olingo OData Client for JavaScript (odatajs). Olingo odatajs webpage says: You may also use the documentation and the samples from the datajs library because the features and API are similar. So I…
kolbanis
  • 61
  • 9
1
vote
1 answer

JayData JSON decode error

I have JSON objects coming back from ASP.Net oData services which I am reading through JayData oData provider. On one service, JSON object is read into an array without any problems. On another service (from same server), the resulting array…
Chi Row
  • 1,106
  • 7
  • 18
1
vote
2 answers

JayData oData request with custom headers

I need to send custom headers to my wcf oData Service but with the following function the headers dont get modified. entities.onReady(function () { entities.prepareRequest = function(r) { r[0].headers['APIKey'] = 'ABC'; }; …
Jmorvan
  • 1,020
  • 11
  • 31
1
vote
1 answer

Disable 'options' verb in datajs

My hosting provider does not accept the 'Options' verb when sending a odata.read request using datajs. Doesn't work: OPTIONS http://odata.resporter.tv/odata/timelines HTTP/1.1 Accept: */* Origin: http://*******.*** Access-Control-Request-Method:…
1
vote
0 answers

How call WebAPi in phonegap?

I am calling Web API by using Datajs and it is working in each browser but when i am calling this by Phonegap then i am getting error Http Request failed. function DefaultHandler() { var oldDefaultHandler = OData.defaultHandler; …
Ram Sharma
  • 21
  • 4
1
vote
1 answer

OData Web API not supporting Chrome and Firefox

i have created a Web API with oData and calling by datajs so it is running fine for IE but not in other browsers. The code is as below my Controller class is public class CompanyController: EntitySetController < CompanyDto, string > { List <…
Ram Sharma
  • 21
  • 4
1
vote
2 answers

Using JayData to filter Header Detail Table - Inner Join SQL, oData

Hello Am kinda new and using JayData and oData so please forgive my ignorance. This is my object structure : $data.Entity.extend('PlannerModel.vMasterPlanner', { 'Sequence_Number': { key:true,type:'Edm.Int32',nullable:false,required:true }, …
1
vote
1 answer

Asp.Net WebApi OData with DataJs throws an error

I just created a really simple ASP.Net WebApi project. I used NuGet to download the latest OData in WebAPI – RC release. I also download DataJs and Knockout via NuGet. All my dependencies are up to date. I created a simple "Books" class and wired…
1
vote
1 answer

Does the WCF Data Services Toolkit support CORS out of the box?

I'm trying to find a decent solution for cross-domain connections between WCF Data Services and datajs. JSONP works great for GET requests, but I can't POST anything. Does the WCF Data Services Toolkit support CORS out of the box? Are there any…
Douglas Ludlow
  • 10,754
  • 6
  • 30
  • 54
1
vote
1 answer

Downloading a document from a WCF Service to a web page

I am new to web development and I am looking for some advice on the best solution for this scenario. I have a WCF service, and a page written using HTML5, javascript (knockout j's and dataJs) I access my WCF service using DataJS. This works…
Dave
  • 351
  • 3
  • 12
1
vote
0 answers

WCF data services custom basic authentication

I have an WCF Data Service in .NET and I am consuming this service with datajs in Phonegap. I am trying to implement authentication as decribed here: http://goo.gl/0xQvC, and sending credentials with OData.read method. When I read credentials in the…
Jorge
  • 67
  • 9
0
votes
2 answers

Are Data.JS / NowJS / NodeJS production ready technologies?

I want to know which risks I expose to if I start developing web applications using frameworks built around NodeJS? Are they production ready? Do you have any experiences to share regarding implementation of those frameworks (Go on and develop vs.…
user472532
  • 33
  • 3
0
votes
1 answer

Odata.read does not work in FF/Chrome (works in IE)

I wrote a small html/js as shown below:
user203687
  • 6,875
  • 12
  • 53
  • 85
0
votes
1 answer

Calling data from js file to react component

I have a js file with some data on my src/assets folder. I need to call that data into my react component to display it in a chart from PLotly.js I have tried calling the data but I keep getting an error saying that the path can not be found. Should…
Amaliaa Q
  • 1
  • 1
0
votes
1 answer

odata datajs batch paging

In the example below how/where do I specify $skip and $top parameters? OData.request( { requestUri: "http://ODataServer/FavoriteMovies.svc/$batch", method: "POST", data: { __batchRequests: [ { requestUri: "BestMovies(0)", method:…
dm80
  • 1,228
  • 5
  • 20
  • 38