Tagged Questions
1
vote
2answers
563 views
Knockout Js Dropdown not loading with values from WebAPi Service
Knockout Js Dropdown not loading with values from WebAPi Service
Code is as below, Please help me.
This is the knock out js call for drop down
<select data-bind="options: menus, optionsText: ...
1
vote
2answers
199 views
compiling HTML fragments for Single Page Application (SPA)?
Javascript Single Page Applications (SPA's) make it possible to create powerful web applications with simple technology. As an SPA becomes bigger, it seems you would need to have a way to separate the ...
3
votes
1answer
156 views
Secure way of persisting an auth token in a single page js application
Our scenario:
Our solution consists of an MVC app which serves a single page javascript application, and an Asp.Net WebAPI app which is intended for use both as a standalone api and as a source of ...
2
votes
1answer
225 views
Kendo UI datasource custom transport for supporting CORS in IE 8 and IE 9
Same Origin Policy (SOP) prevents Kendo jQuery-based controls from performing CRUD operations to an API (example: ASP.NET WebAPI) on a different domain. Our javascript front-end is on a different ...
1
vote
1answer
276 views
AcceptVerbs not working in Web API Controller
I am trying to call an Action in Web API Controller through an ajax request as follows
$.ajax({
url: "/api/GuestPartyAPI/" + cerid,
type: "GETAD",
async: false,
...
0
votes
1answer
174 views
Metadata query failed for: Breeze JS
I was developing Breeze JS To Dos app using ASP.net Web Api. When I request to the resource I'm getting "Metadata query failed for: odata/Todos/Metadata; NaN". But when I manually request to ...
0
votes
1answer
62 views
CSV formatting in web request
I am using a javascript charting control (d3 scatter chart) that requires CSV input.
The control has two available methods of requesting the CSV data - Point at a CSV file, or a URL that will return ...
0
votes
1answer
484 views
ASP.NET MVC 4/Web API Single Page App for Mobile Devices … Needs Authentication
We have developed an ASP.NET MVC 4/Web API single page, mobile website (also using jQuery Mobile) that is intended to be accessed only from mobile devices (e.g., iPads, iPhones, Android tables and ...
0
votes
1answer
310 views
Scaffolded Upshot context not calling webapi?
I am following a very simple tutorial by Steve Sanderson and it seems like the scaffolded script does not call my webapi:
cshtml code:
...
1
vote
0answers
376 views
Amplify.js + Asp.net Web Api send multiple parameters
js code to define an ajax call:
function InitDataServices()
{
amplify.request.decoders.myDecoder =
function (data, status, xhr, success, error)
{
if (status === "success") ...
0
votes
0answers
34 views
Resizing and image processing on many images?
I have several 1000s of images on disk that I need to display a subset of, given user search criteria. What this means is I could be showing 100s at one time. Each image is large- 3510x1131 to be ...
0
votes
0answers
117 views
405 Method not found when calling Web API method using XMLHttpRequest
I have enabled CORS in my Web API methods
[EnableCors]
public HttpResponseMessage PostDeviceControl(DeviceAccessRequest deviceAccessRequest)
{
var deviceId = ...
0
votes
0answers
144 views
Dynamic JavaScript returned by webapi
I am using requirejs to load JavaScript for my page. I have a webApi route that dynamically reads from a file and returns JSON using the Newtonsoft JObject. On the client side I then take the result ...
0
votes
0answers
134 views
Use Web API from ASP.NET or Javascript
I've been looking into using Web API for a new product I'm developing; the initial version will be a web application followed up by mobile/tablet applications so the Web API route seems a good one.
...