0
votes
2answers
24 views

Breeze js client-side camelCase extension property not mapped from PascalCase server property

I'm using Breeze JS to create a client-side extension property as per: http://www.breezejs.com/documentation/extending-entities My constructor declares two camelCase properties: function Building() ...
2
votes
0answers
48 views

Chrome and IE return different SHA hashes

I have written a website that utilizes a SHA-256 hash to validate a user's password. This is a relatively unsecure setup to start with, as most users will have the same username/password. To try and ...
0
votes
1answer
30 views

Office App Ajax with auth header, connecting to secured web api 2 backend with cors enabled

I'm building a content panel app for Office. Part of that requires authenticating an account against a server. I've implemented my own AuthorizationFilterAttribute on my web api 2 controllers, and ...
0
votes
1answer
64 views

Returning a zip file to angularjs for download

I have the following angularjs code: $scope.search = function() { creatorService.search($scope.model).then(function(data) { saveAs(new Blob([data], { type: "application/octet-stream'" }), ...
0
votes
0answers
51 views

AngularJS shows me “digest already in progress” after calling API

I'm using AngularJS resource to call an API. When I get a list of items with the API, all shows well in my ng-grid. When I try to filter on for example employeename, angular returns me "digest already ...
0
votes
1answer
100 views

Breeze.js to ODATA Web API - CORS requests are failing

I am experimenting with Breeze.js queries against ODATA service built on Microsoft Web API 2. Everything worked as expected when both UI and ODATA controllers lived in the same web application. Then ...
1
vote
2answers
67 views

jQuery ui autocomplete not firing select event

I have a jQuery autocomplete, and the select event is never fired. The script looks like this: $(function() { $('#AppName').autocomplete({ minLength: 0, source: function(request, ...
1
vote
1answer
294 views

WebAPI DELETE - HTTP/1.1 405 Method Not Allowed

I've been trying to get delete working and just can't seem to make it work! All GET requests seem fine, but if I try and use the delete verb I get the above error. The method itself is reachable if ...
2
votes
1answer
346 views

Post JSON and file data and from JavaScript to MVC Web API Controller

I want to upload a large file in chunks with JavaScript - i.e. using the File API to slice it, then post the slice blob to the server. I can do this like so: Javascript: // file is a file from an ...
0
votes
0answers
29 views

How to watch session timeout decrement over time for client and server

Is there a way to see both the client javascript and the web mvc or web api session timeout decrement over time from like 15 minutes to 14 minutes with no inactivity and watch it drop all the way to 0 ...
0
votes
1answer
23 views

Filtering and only display certain information using Web API

I am developing a website that is mostly written in asp.net and Javascript and I am using a lot of ajax on it to retreive and display information from a SQL database. To perform all these operations ...
0
votes
1answer
84 views

ajax call from web api 2 failing

I'm trying to do a ajax call from jquery where I need data from my webservice (web api) to a phonegab app for my android. I have installed Cors from Nuget and enabled this the service. But when I ...
7
votes
4answers
2k views

How to get Access Token from ASP.Net Web API 2 via AngularJS $http?

I try like this: $http({ method: 'POST', url: '/token', data: { username: $scope.username, password: $scope.password, grant_type: 'password' } }).success(function (data, status, headers, config) { ...