login form using ajax, to submit without refreshing
- by Brad
I am using this tutorial to create a login form http://www.ryancoughlin.com/2008/11/04/use-jquery-to-submit-form/
It authenticates against w/ our ldap server.
What I am having a problem with is the line
success: function(){
$('form#submit').hide(function(){$('div.success').fadeIn();});
It runs success even though we don't even know if the username and password binded successfully.
Is there a way to only run success if the username and password posted was binded successfully?