Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url:'/ajax/getClientesEstoque',
- type: "POST",
- dataType:'json',
- cache: false,
- data:{id:Cliente},
- beforeSend: function() {
- //Ação antes de fazer o post dos dados.
- },
- success:function(json) {
- if(json.dados.length > 0){
- //Carregando a tela com os chamados
- for(var i in json.dados){
- //Carregando o vetor para utilização no objeto json.dados[i].campo
- }
- }
- },
- error:function(jqXHR, textStatus, errorThrown) {
- alert('Ocorreu um erro. Informe ao ADM do sistema.');
- console.log("error: " + textStatus);
- console.log("error Thrown: " + errorThrown);
- console.log("incoming Text: " + jqXHR.responseText);
- }
- });
Add Comment
Please, Sign In to add comment