Form inputs and their behaviors
So looks like someone needs to play a bit more with their form inputs. Marko reports that when he changed his form from:
<input type="button" />
to:
<input type="image" />
His forms started getting submitted automatically when clicking the image button. But yeah, that’s how it’s supposed to work. If that button is supposed to be your main “submit” like button on your form, then change your JavaScript code to trap the onSubmit event and return false to it. As in:
<form method="post" onSubmit="javascript:return handleXHR();"></form>
Then inside that function you just do “return false;” to stop the form from being submitted.


