davistuart

Untitled

Apr 23rd, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //requisicoesAjax.js - novos metodos
  2.  
  3. function checarCpf(){
  4.     var cpfParam = document.getElementById("CPF/CNPJ").value;
  5.     var idParam = jQuery("#clienteLojaForm_cliente_id").val();
  6.    
  7.     var params ={cpfParametro: cpfParam, id: idParam};
  8.    
  9.     jQuery.ajax({      
  10.         url: ctx + "/checarCpf_ClienteLoja.html",
  11.         data: params,
  12.         success: function(data){
  13.             if(data!="true"){
  14.                 jQuery("#retornoAjax").html(data);
  15.                 displayPopIn('erroDiv', 'block');
  16.             }
  17.         }
  18.     });
  19.     return false;
  20. }
  21.  
  22. function checarEmail(){
  23.     var emailParam = document.getElementById("E-mail").value;
  24.     var idParam = jQuery("#clienteLojaForm_cliente_id").val();
  25.    
  26.     var params ={emailParametro: emailParam, id: idParam};
  27.    
  28.     jQuery.ajax({      
  29.         url: ctx + "/checarEmail_ClienteLoja.html",
  30.         data: params,
  31.         success: function(data){
  32.             if(data!="true"){
  33.                 jQuery("#retornoAjax").html(data);
  34.                 displayPopIn('erroDiv', 'block');
  35.             }
  36.         }
  37.     });
  38.     return false;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment