Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 31st, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function validateUsernameUnity(username){
  2.        
  3.         with(username) {
  4.                
  5.             new Ajax.Request("check-username.php?username=" + value, {
  6.                 method: "GET",
  7.                 onSuccess: function(response){
  8.                                
  9.                     if (response.responseText == "1")                                  
  10.                                         return false;
  11.                                        
  12.                                 else return true;
  13.                 }
  14.             });
  15.         }
  16. }