webix.ajax().sync().post() params null

I have a code what do a post to my back-end, but in the back-end the values passed in the param argument are null, i'm using $$("MyForm").getValues() as the param argument, if i put it in a variable named "params" and do a console.log(params) before execute the post, the params will be printed in console, here follow te code:

    webix.ajax().sync().post("MyController",
        JSON.stringify($$("MyForm").getValues()) ,function(text, data) {        
        if (data.json().success) {                  
             toastr.success(data.json().mensagem);              
        } else {toastr.error(data.json().mensagem); }
    });

Someone can help me with this, i'm starting with webix

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!