get specific data after a POST

Hi, I need help with this.
I have this code:

var valueUsername = $$("usernameTextBox").getValue().toString();
var valuePassword = $$("passwordTextBox").getValue();"state", $$("businessComboBox").getValue());
var state ="state");
console.log(valueUsername + " " + valuePassword);
webix.ajax().post("//", { usuario: valueUsername, password: valuePassword, codemp: state }).then(function (data) {
//response text
if (data.success == true) {
} else {
webix.message("Usuario o contraseña inválidos");

What I want is to get a specific data after a POST because i need the value of "success" to know if the data that the user provide is correct let it continue with the web page.


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!

In this Discussion