como Condicionar mi Codigo SI mi stored Me regresa dos msj distintos
Publicado por alexis (11 intervenciones) el 15/07/2019 20:53:21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
function CambiarNumero() {
var Skid1 = $("#Skid1").val();
var Skid2 = $("#Skid2").val();
var input = document.getElementById('Skid1');
var input = document.getElementById('Skid2');
callAjaxthree(Skid1, Skid2);
};
function callAjaxthree(Skid1, Skid2) {
$.ajax({
type: "POST",
url: "/App/ButtonSkidjson",
data: JSON.stringify({ 'Skid1': Skid1, 'Skid2': Skid2 }),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
tablethree(response);
if (response != -1) {
console.log(response);
if (response == 1)
return true;
else {
swal("¡Cambio Exitoso!", response, "error");
return false;
}
} else {
console.log("No Se Guardo La Operacion");
}
},
failure: function (response) {
console.log(response.responseText);
},
error: function (response) {
console.log(response.responseText);
}
});
}
Valora esta pregunta


0