Hi, guys!
webix.ajax( ).post("/api/Order.add/card/", { params : {prop1: 1, prop2: 2} }, function(data) { ... }
When transmitting its argument as an object, has not a translator for individual fields.
Therefore, the argument is passed as:
params: [object Object]
P.S.
Chrome 39.*
Helga
2
Hello,
You can pass parameters in a JSON string, not an object, and parse this string on server.
webix.ajax( ).post("/api/Order.add/card/",
{ params : JSON.stringify({prop1: 1, prop2: 2}) },
function(data) { ... }
);
maksim
3
I think we will update this behavior in Webix 2.2 and will add automatic stringify call for object parameters.
halcwb
4
In version 3.3.17 this still doesn’t work, I have to do this:
webix.ajax().post("/request", JSON.stringify({ action: “test”, query: {} })).then(console.log);