Last active
January 5, 2017 17:47
-
-
Save pokisin/48f248052a1a6b8275ef49d4ca057e0b to your computer and use it in GitHub Desktop.
Peticiones post,get con Jquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------- POST ------------------------------- | |
$.post(ruta,{ids:ids_movimientos},function(data, status, jqXHR){ | |
console.log(data); | |
console.log("status: "+status); | |
console.log(jqXHR); | |
},"json").fail(function(e) { | |
alert( e.responseText ); | |
}); | |
------------------------------- GET ------------------------------- | |
$.get(ruta,{ids:ids_movimientos},function(data, status, jqXHR){ | |
console.log(data); | |
console.log("status: "+status); | |
console.log(jqXHR); | |
},"json").fail(function(e) { | |
alert( e.responseText ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment