Bypassing Javascript form handler
Posted
by Ben Aston
on Stack Overflow
See other posts from Stack Overflow
or by Ben Aston
Published on 2010-03-19T07:51:56Z
Indexed on
2010/03/19
8:01 UTC
Read the original article
Hit count: 266
We are writing an ASP.NET MVC application. By default, if the client browser has Javascript, the handler for every form on the page is set, by Javascript, to be one that sends the submission down an Ajax "pipe" (progressive enhancement).
But, for one form (on a page of several), I'd like this handler to be bypassed/ignored. Is there a simple way to do this? Perhaps by overriding the handler by specifying my own onsubmit event directly in the DOM - or some other method?
We use jQuery, so those libraries are available to me.
© Stack Overflow or respective owner