From c7533250312edf6ef58feb0c3d1c14e641c00200 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 18 Jan 2011 20:49:41 -0800 Subject: more debug --- newuser.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/newuser.html b/newuser.html index cd11c19..1a4fb42 100644 --- a/newuser.html +++ b/newuser.html @@ -8,9 +8,11 @@ $("#pass2-row").show(); - $("#username").change(function(){ + $("#username").change(function( obj ){ - $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: $("#username").value }.serialize(), function( res, stat, req ){ + alert( { t: "Username", v: $("#username").value, r: obj } ); + + $.post( "https://secure.dev.piny.be/piny-validate", { t: "Username", v: $("#username").value }, function( res, stat, req ){ alert( "res = " + res + "\nstat = " + stat + "\nreq = " + req + "\nreq.responseText = " + req.responseText ); if ( res ) { if ( res.ok ) { -- cgit v1.2.3