salmanhijazi
salmanhijazi

Reputation: 825

JQuery Live validation callback issue in Safari

here is the code that handles the validation callback:

    $(".submission-validate").validate({
        submitHandler: function(form) {
            form.submit();
            $('#submit').fadeOut('fast', function() {
                $('#pleasewait').fadeIn('fast');
            });   
        }
    });

It works perfectly fine on other browsers, but nothing happens when I click submit in Safari. If I remove the submitHandler, it works fine. Please help me sort this issue out.

Also, I read up on some articles that there is about a 40% chance that a form with files for upload will hang or get stuck and show no activity. I also read up that the solution to it would be to send a connection close header or something. Please help me make this possible in my form too.

Any and all help will be greatly appreciated. Thank you!

Upvotes: 1

Views: 484

Answers (1)

Abdallah Baddi
Abdallah Baddi

Reputation: 21

Simply rename your submit button's name into something other than 'submit'.

Wrong submit button name:

<input type="submit" name="submit" value="Submit" />

Correct submit button name:

<input type="submit" name="send" value="Submit" />

Upvotes: 1

Related Questions