jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: populate dataAdapter with ison populate dataAdapter with ison #65540

    RG
    Participant
    in reply to: POST not sending JSON! POST not sending JSON! #65539

    RG
    Participant

    Thanks a bunch for this. When I first read it I dismissed it thinking you removed the data statement completely. After wrestling with this problem I see it is solved with your solution using formatData … so I prefer to use your solution this way:
    contentType: ‘application/json’,
    formatData: function (data) {
    return JSON.stringify(data);
    },
    var params = new Object()…. and in the source definition…
    var source = {
    datatype: “json”,
    type: “POST”,
    data:params

    in reply to: populate dataAdapter with ison populate dataAdapter with ison #65533

    RG
    Participant

    No matter what setting I try, I still end up with the ‘Request Body’ being sent as name: value instead of {“name”: “value”}

    in reply to: populate dataAdapter with ison populate dataAdapter with ison #65521

    RG
    Participant

    I can not figure out a way to get the dataAdapter to make a Request Body passing name value pair with json format in POST. Help would be appreciated.

    What I’m trying to do is to post with a Request Body in the format {“name”: “value”}. I have not been able to do this with either data: or formatData:. Any working example of dataAdapter using type: “POST” with json Request Body data would be appreciated. Need to have the braces and double quotes in the Body.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)