diff options
Diffstat (limited to 'newuser.html')
-rw-r--r-- | newuser.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newuser.html b/newuser.html index e817be5..88fae35 100644 --- a/newuser.html +++ b/newuser.html @@ -10,8 +10,8 @@ $("#username").change(function( obj ){ - $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: obj.value }, function( data ){ - var res = $.parseJSON( data ); + $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: obj.value }, function( res ){ + alert( res ); if ( res ) { if ( res.ok ) { $("#username-error").removeClass( "error" ).html( "" ); @@ -21,7 +21,7 @@ } else { $("#username-error").addClass( "error" ).html( "somehow res is null!" ); }; - } ); + }, 'json' ); }); |