Linked Questions

0 votes
1 answer
5k views

I tried in 2 ways: saving the json on a var var dataLog = JSON.stringify( { "clientId": "1", "sensor": "Temp", "dateStart": "2016-09-03 00:00:00", "dateEnd": "2016-09-03 00:59:59" } ); $....
Gil's user avatar
  • 701
78 votes
13 answers
264k views

I keep receiving this error when I do some Ajax calls... It may even be something to do with Geocoding but I really have no idea how to capture the error to display something useful to users... or ...
Jimmyt1988's user avatar
  • 21.3k
52 votes
5 answers
49k views

I'm facing a little problem right now with Django Rest Framework. I'm trying to post an object with nested objects in it. Here are my serializers.py: class ClassSerializer(serializers....
wencakisa's user avatar
  • 6,008
18 votes
2 answers
29k views

I've been playing with Amazon S3 presigned URLs all night attempting to PUT a file. I generate the presigned URL in java code. AWSCredentials credentials = new BasicAWSCredentials( accessKey, ...
digitaljoel's user avatar
  • 26.6k
11 votes
3 answers
7k views

I have a form that is generated via jquery: $.get("/api/get/getListItems", function (data) { var table = ""; table += "<table>"; $.each(data, ...
user979331's user avatar
  • 12.1k
9 votes
3 answers
15k views

I have a model like this: public PurchaseOrder { [Required] [StringLength(15)] public virtual string OrderNumber {get;set;} // etc. } When I submit an order from the view (using $...
JK.'s user avatar
  • 21.6k
1 vote
4 answers
5k views

I'm using knockout and I'm trying to send information to PHP, using firebug to check Network -> Headers I have this: Request URL:http://localhost/loyalty/welcome/json/ Request Method:POST Status Code:...
user avatar
0 votes
1 answer
7k views

I am trying to communicate data between JavaScript and Python, and I am doing that by using JSON variables, but it seems that whenever I make a POST request from JavaScript, request.get_json() in the ...
Mary Xu's user avatar
2 votes
2 answers
6k views

Code 1 $.ajax({url:"1.aspx/HelloWorld",type:"GET",dataType:"json",contentType:"application/json"}); Code 2 $.ajaxSetup({ contentType: "application/json&...
Deeptechtons's user avatar
  • 11.1k
4 votes
2 answers
13k views

Solved. The solution is to set contentType to 'application/json' and use the JSON.stringify(obj) instead of obj, but you may then have to change how you get the data on your server, depending on the ...
user3391564's user avatar
3 votes
1 answer
2k views

Google Analytics v4 API now uses POST requests instead of GET request. And there are no good javascript examples out there yet for me to follow. I'm getting empty object Object { }, but I'm sure that ...
wailer's user avatar
  • 551
0 votes
2 answers
2k views

I have an issue posting some JSON to a web service built using Jersey REST. The data never seems to arrive at the server. The overall task flow is somewhat like this: Javascript POST JSON -> ...
nihulus's user avatar
  • 1,495
0 votes
1 answer
808 views

I want to edit returned data from AJAX, and then return back that edited data using AJAX. The first AJAX request succeeds but the second doesn't. I can't find out what is wrong. Any help please? ...
Kiki's user avatar
  • 333
0 votes
2 answers
427 views

In jQuery, I am referencing https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js . But I think I have problems with jQuery's $.post() when I follow their template very closely, i.e., $....
Jenna Leaf's user avatar
  • 2,510
0 votes
1 answer
327 views

I'm at my wit's end here. I think I just need another set of eyes. Method Signature: public async Task<IHttpActionResult> Post(ApiRequest request) Model: [SuppressMessage("ReSharper", "...
Cameron's user avatar
  • 2,604

15 30 50 per page