From 5abf1f295163157d619f5ef3b9ae10e2ecb57a5b Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 18 Jan 2011 19:34:28 -0800 Subject: perhaps this will work --- newuser.html | 6 +++--- 1 file 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' ); }); -- cgit v1.2.3