04-27-06 01:07 PM
Hi all,
I have a JSP page. There are 2 input fields, 1 output field and 1 submit but
ton.
After I fill the second input field and presses enter, it will trigger my Ja
vaScript code and generate the value for the output field. It works well, bu
t after it triggers my JavaScript code, the cursor moves to the submit butto
n and trigger the submit bu
tton doAction unexpected. After that it refreshes my JSP page, I lost the J
avaScript generated output value.
I use <hx:commandExButton type="submit"
action="#{pc_ProductView.doAction}" for my submit button.
If I use the tab after I input the second field, it works well and doesn?t
trigger the submit button.
How to avoid to trigger the submit button after I press the enter key for th
e input filed? I can?t ask the user uses tab key instead of enter key.
Thanks,
George
[ Post a follow-up to this message ]
|