manusoftar

Untitled

Sep 8th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function verifyName(name){
  2.     if (name.length == 0){
  3.          return false;
  4.      }
  5.      //var ajax = getAJAX();
  6.      //ajax.open("GET","../php/query.php?T=0&V="+name);
  7.      //ajax.send();
  8.      
  9.      $.get("../php/query.php",{ T : 0, V : name}, function(respuesta){
  10.                                  if (respuesta=="1"){
  11.                                      return true;
  12.                                  } else {
  13.                                  return false;
  14.                                  }
  15.     });
  16. }
Advertisement
Add Comment
Please, Sign In to add comment