login form using ajax, to submit without refreshing

Posted by Brad on Stack Overflow See other posts from Stack Overflow or by Brad
Published on 2010-03-23T19:21:44Z Indexed on 2010/03/23 19:23 UTC
Read the original article Hit count: 409

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX