Guest User

Untitled

a guest
Dec 13th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. function getprueba() {
  2. var folio = $('#numerofolio').val();
  3. $.ajax({
  4. type: "GET",
  5. url: "/User/Prueba2?tick=" + folio,
  6. contentType: "application/json; charset=utf-8",
  7. dataType: "json",
  8. success: function (result) {
  9. if (result == "null") {
  10. alert("no está funcionando");
  11. }
  12. for (var i = 0; i < result.length; i++) {
  13.  
  14. var nombre = result[i].ruta.split("/");
  15. var separe = nombre[8];
  16.  
  17. }
  18.  
  19.  
  20.  
  21. },
  22.  
  23. error: function (err) {
  24. alert("error" + err);
  25. }
  26. });
  27. }
  28. </script>
  29.  
  30. <a asp-controller="User" asp-action="Descarga" asp-route-ruta=""+result[i].ruta +"">" + separe + "</a>"
Add Comment
Please, Sign In to add comment