I am using a line of javascript that both sets the value of a hidden input element (name='button') and then submits the form. The destination of the post can then pick up the value of the hidden field (request.form(" button")) and process accordingly. I'm using this to detect which button has been clicked. The buttons are built as links because they can detect clicks and because I want a consistent appearance with drop down menus that I've used elsewhere in the site. This is simple to implement and works perfectly in IE but not in firefox where it submits but does not pick up the value of the hidden field (i.e. 'Login' below). Can anybody help with a suggestion that will make it work in firefox and save me the task of coding submit buttons separately on a very large number of pages. If so, I would be extremely grateful. Here's the code:
Code:
<form action="Defect.asp?WCI=SignOn&WCE=frmSignOn" method="post" name="form1">
<input name='button' type='hidden'>
<ul class='action'>
<li class='action'>
<a class='action' href="Javascript: {document.form1.button.value='Login'; document.form1.submit()};">
LOGIN
</a>
</li>
</ul>
</form>
Comment