Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //requisicoesAjax.js - novos metodos
- function checarCpf(){
- var cpfParam = document.getElementById("CPF/CNPJ").value;
- var idParam = jQuery("#clienteLojaForm_cliente_id").val();
- var params ={cpfParametro: cpfParam, id: idParam};
- jQuery.ajax({
- url: ctx + "/checarCpf_ClienteLoja.html",
- data: params,
- success: function(data){
- if(data!="true"){
- jQuery("#retornoAjax").html(data);
- displayPopIn('erroDiv', 'block');
- }
- }
- });
- return false;
- }
- function checarEmail(){
- var emailParam = document.getElementById("E-mail").value;
- var idParam = jQuery("#clienteLojaForm_cliente_id").val();
- var params ={emailParametro: emailParam, id: idParam};
- jQuery.ajax({
- url: ctx + "/checarEmail_ClienteLoja.html",
- data: params,
- success: function(data){
- if(data!="true"){
- jQuery("#retornoAjax").html(data);
- displayPopIn('erroDiv', 'block');
- }
- }
- });
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment