jpillora / verifyjs

Verify.js - A powerful, customizable asynchronous validation library
http://verifyjs.jpillora.com/
161 stars 61 forks source link

Validation deletes pressed button from the POST request #29

Open ValerioEmanuele opened 9 years ago

ValerioEmanuele commented 9 years ago

Hi, I'm using your wonderful framework on my web application but I discovered a big problem. My web application is builed with Struts (v1) and verify cause problems with pages navigation.

In order to work, the Struts navigation need to know the pressed button but, if for example I have a form like the follow:

<form id="registrazione" action="/action.do" method="post>

<input type="text" id="surname" name="surname" />
<input type="submit" name="ok" value="ok" id="okBtn"  />
<input type="submit" name="back" value="back" id="backBtn"  />

And I fill the fields and press back button

With yours framework in the POST content I'll get: name=aaa&surname=bbb

while without yours framework I'll get this: name=aaa&surname=bbb&back=back

And the last information its fundamental to get the Struts navigation working.

RobMel commented 8 years ago

The problem occurs on IE (I tested v11) and not on Firefox or Chrome. Has anyone solved it?