diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-01-18 19:34:28 -0800 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-01-18 19:34:28 -0800 |
commit | 5abf1f295163157d619f5ef3b9ae10e2ecb57a5b (patch) | |
tree | d5b75bbf6ecc412077cc8067e818ea64628b459c | |
parent | 3edf86519c924c80ad0d000d7934cc5fdecd107e (diff) | |
download | hosting-5abf1f295163157d619f5ef3b9ae10e2ecb57a5b.tar.gz hosting-5abf1f295163157d619f5ef3b9ae10e2ecb57a5b.zip |
perhaps this will work
-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' ); }); |