summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newuser.html6
1 files 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 ) {