Thursday, May 16, 2013

Fixing NS_BINDING_ABORTED error in FireFox


I have an anchor tag click me$("someButton").click(function(event) {
$('.someForm').submit();
}); The form submission fails because the browser is submitting it twice. The anchor tag action is cancelling the the form submission.   If you use HttpFox, it will report this error on the form submission:NS_BINDING_ABORTED To fix the problem, all you need to do is to prevent the default click event: $('#someButton').click(function (e) { e.preventDefault(); $('.someForm').submit(); return false; });

No comments:

Post a Comment

About Cullen

My photo
Christian, Father, Software Developer/Architect who enjoys technology and using it to make people's lives easier!

Followers