I sometimes have trouble with just using #(obj).submit(). .bind seems to be more reliable. You could do something like this I think (untested):
$('#newUserForm').bind('submit', function() {
var FormName = $(this).attr('name');
if (xajax_validateEmailAddressAndUsername(xajax.getFormValues(FormName))) {
$(this).submit();
}
else {
alert("Oh no!");
return false;
}
}
Electronic Zebra
2009-09-21 22:57:59