Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).on("click", ".btnFeLlegada", function () {
- $(this).hide();
- var wRenglon = $(this).closest("tr");
- var myId = wRenglon.find(".myRowId").text();
- $.ajax({
- method: "post",
- url: "../ajax/embarques/a_embembconslinea.jsp",
- data: {
- "xAccion": "grabaFechaLleagada",
- "myId": myId
- },
- dataType: 'json',
- async: false
- }).done(function (json) {
- $(this).hide();
- })
- .fail(function (jqXHR, textStatus, errorThrown) {
- alert("error " + textStatus);
- var werror = "Error Catalogo de Clientes.. ";
- if (jqXHR.status === 0) {
- werror = 'Not connected.\nPlease verify your network connection.';
- } else if (jqXHR.status == 404) {
- werror = 'The requested page not found. [404]';
- } else if (jqXHR.status == 500) {
- werror = 'Internal Server Error [500].';
- } else if (errorThrown === 'parsererror') {
- werror = 'Requested JSON parse failed.';
- } else if (errorThrown === 'timeout') {
- werror = 'Time out error.';
- } else if (errorThrown === 'abort') {
- werror = 'Ajax request aborted.';
- } else {
- werror = 'Uncaught Error.\n' + jqXHR.responseText;
- }
- alert(werror);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement