Hmm, quite nice, Chris. I will try it. I had another solution. Better code, but it redraw button for a moment between clicking and disappearing of old page. Maybe somebody could improve it.
function submitForm() { var e = document.getElementById('btnAction0'); e.value = e.attributes['value'].value; }
Yes this is blooming annoying;
Here's what I did;
I pairred each button tag with a hidden input field in the following way:
';
';
And wrote this javascript function:
Then when the button is submited it updates the related hidden field to 1. You can then use the hidden field variables to find which button tag was pressed as it will have value of 1.
We should not have to do this but IE is obviously cr*p. Hope this helps
Comment
Hmm, quite nice, Chris. I will try it.
I had another solution. Better code, but it redraw button for a moment between clicking and disappearing of old page. Maybe somebody could improve it.
function submitForm() {
var e = document.getElementById('btnAction0');
e.value = e.attributes['value'].value;
}
<form method="get" action="login.cgi" onsubmit="submitForm()">
<button type="submit" id="btnAction0" name="action" value="login">Login me</button>
</form>
( be sure you don't use function name: "submit()" )
Parent comment
Yes this is blooming annoying; Here's what I did; I pairred each button tag with a hidden input field in the following way: '; '; And wrote this javascript function: Then when the button is submited it updates the related hidden field to 1. You can then use the hidden field variables to find which button tag was pressed as it will have value of 1. We should not have to do this but IE is obviously cr*p. Hope this helps