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; });
Sharing the joy of coding in C#, Asp.Net MVC, JavaScript, HTML5, TDD/BDD, DDD and anything code related.
Thursday, May 16, 2013
Fixing NS_BINDING_ABORTED error in FireFox
Subscribe to:
Posts (Atom)
About Cullen
- Software Engineer/Architect
- Christian, Father, Software Developer/Architect who enjoys technology and using it to make people's lives easier!