Hi guys,
I'm using an AjaxSubmitButton to submit a form and pop up an AjaxModalDialog
in the process. Does anyone know of a way that I could do that same
submission when a user presses "Enter" in any of my form fields?
I've tried using the js "click()" method to no avail.
Thanks,
Ben
Code:
<wo:form id = "quickorderform">
Part Number
<wo:textfield id = "purchasePart" size = "20" value =
"$purchasePartNumber" default = "catalog part #" onkeydown="if
(event.keyCode == 13)
document.getElementById('quickOrderSubmitButton').click()"/>
<br />
Qty
<wo:textfield id = "purchaseQty" size = "20" value = "$purchaseQty"
numberformat = "0" default = "qty" onkeydown="if (event.keyCode == 13)
document.getElementById('quickOrderSubmitButton').click()"/>
<br />
<wo:AjaxSubmitButton id = "quickOrderSubmitButton" action = "$purchase"
value = "purchase"></wo:AjaxSubmitButton>
</wo:form>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]