Hi everyone,
I have a JSP with a form and a list box. When the user selects a value in the list box the form is submitted:
<form id="ampForm" method="POST" action="AMPSearch">
<fieldset>
<p>
<label for="amp">
Actual Medicinal Product Search Result:
</label>
//Here is where I think the problem lies the "onchange" method does not appear to be recognised by Firefox.
<select size="10" name="amp" onchange="ampForm.submit()" class="listbox">
<c:out escapeXml="false" value="${requestScope.ampList}" />
</select>
<input type="hidden" name="ampList" value="<c:out escapeXml="true" value="${requestScope.ampList}" />" />
</p>
<p>
<label for="ampp">
Actual Medicianl Product Pack Sizes:
</label>
<select size="10" name="ampp" class="listbox">
<c:out escapeXml="false" value="${requestScope.amppList}" />
</select>
</p>
<c:if test="${!empty requestScope.amppList}">
<p>
<label for="quantity">
Quantity:
</label>
<input type="text" name="quantity" value="" />
<input type="submit" value="Add Order" name="addOrder" />
</p>
</c:if>
</fieldset>
</form>
This all works fine in IE7 and Opera 9.1 and Netscape 8.1 when it is set to display like IE, but not in Firefox 2.0 or when Netscape is set to display like Firefox.
Does Firefox not recognise the "onchange" method? What should I use instead? Any help would be much appreciated.
Tom