Guest User

Untitled

a guest
Jun 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function Vendedores() {
  2. $.ajax({
  3. type: "POST",
  4. url: 'http://' + document.getElementById("servidor").value + '/Proformas.aspx/CargaVendedores',
  5. data: '{pnumero:"0"}',
  6. contentType: "application/json; charset=utf-8",
  7. datatype: "json",
  8. crossDomain: true,
  9. async: false,
  10. success: function (resulta) {
  11. $.each(resulta, function (i, field) {
  12. //some stuff....
  13. });
  14. },
  15. error: function (resulta) {
  16. alert("no se pudo cargar los vendedores, revisar conectividad con el servidor");
  17. },
  18. });
  19. }
Add Comment
Please, Sign In to add comment