Root
Root

Reputation: 2349

JavaScript ajax post not work on IE?

Hello Friends :D

I have problem when hiding a <div> in Internet Explorer 6,7 and 8 using a jQuery/JavaScript ajax POST. The following code works fine on other browsers (for example FF,Chrome,Safar and Opera), but it doesn't work in IE.

below is my script on login page:

    $(document).ready(function(){
    $("#even tr:even").addClass("even");
     $('#login_loader').hide();

        $("#login_form_submit").click(function() {

            $('#login_form_submit').attr('disabled', true);
            $('#login_loader').fadeIn(200);
            $('#login_group').slideUp(500);
            $('#logout_hint').slideUp(500);
            $('#login_contact_form').slideUp(500);

            $.post("action/login.php?act=login", {
                username: $('#login_username').val(),
                password: $('#login_password').val(),
                captcha: $('#login_captcha').val(),

            }, function(response){

                setTimeout("finishAjax('login_group', '"+escape(response)+"')", 1000);

            });

            return false;

        });

    });

Can anyone see what the problem is? Thanks ;)

Upvotes: 0

Views: 383

Answers (1)

aldux
aldux

Reputation: 2804

Remove the comma in this line:

captcha: $('#login_captcha').val(),

Upvotes: 1

Related Questions