summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-01-18 19:34:28 -0800
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-01-18 19:34:28 -0800
commit5abf1f295163157d619f5ef3b9ae10e2ecb57a5b (patch)
treed5b75bbf6ecc412077cc8067e818ea64628b459c
parent3edf86519c924c80ad0d000d7934cc5fdecd107e (diff)
downloadhosting-5abf1f295163157d619f5ef3b9ae10e2ecb57a5b.tar.gz
hosting-5abf1f295163157d619f5ef3b9ae10e2ecb57a5b.zip
perhaps this will work
-rw-r--r--newuser.html6
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' );
});