jquery ajax call errors in chrome onenter with no responseText

Posted by wham12 on Stack Overflow See other posts from Stack Overflow or by wham12
Published on 2010-02-04T21:44:35Z Indexed on 2010/04/22 15:43 UTC
Read the original article Hit count: 211

Filed under:
|
|

I've built a login page that uses a .ajax call to a generic c# handler (.ashx) to validate the username and password before allowing the user to log in.

If you click on the login link

<a href="#" class="ui-state-default ui-corner-all CustomButton" onclick="goLogin();return false">

the .ajax call returns successfully and it logs the user in. I am trying to make it so the user can also just press the "enter" key from the password box:

$("#pword").keydown(function(e) {
    if (e.keyCode == 13) {
        goLogin();
    }
});

Using Firefox, both ways work just fine and the user is logged in. With Chrome however, pressing "enter" hits the error function of my .ajax call and will not log the user in.

The parameters and responses look identical through Firefox's console, as expected. What would be causing this and/or how can I debug it in Chrome?

© Stack Overflow or respective owner

Related posts about jquery-ajax

Related posts about chrome