Guest User

Untitled

a guest
Jan 15th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Object {readyState: 4, responseText: "", status: 200, statusText: "OK"}
  2.  
  3. $.ajax({
  4. url: 'datacenter/functions/filtraDados.php',
  5. type: 'POST',
  6. dataType: 'JSON',
  7. contentType: "application/json; charset=utf-8",
  8. data: {usuario: $("#dropdown-user").val()},
  9. success: function(data){
  10. $("#filtro-rede").text(data[0][0]['rede']);
  11. $("#filtro-loja").text(data[0][0]['loja']);
  12. },
  13. error: function(error){
  14. //alert('Ocorreu durante a execução do filtro. Tente novamente mais tarde!');
  15. console.log(error);
  16.  
  17. }
  18. })
  19.  
  20. error: function(jqXHR, status, error){
  21. //alert('Ocorreu durante a execução do filtro. Tente novamente mais tarde!');
  22. console.log(status, error);
  23.  
  24. }
  25.  
  26. dataType: 'JSON'
Add Comment
Please, Sign In to add comment