craigdawson,
If you want to continue to use the event for whatever reason then try to fix this with ...
<INPUT type="text" name="CONTRACT_ID" onkeypress="javascript:sub
Adding "return false" to the event should stop any further default behavior by the object. In theory that should fix the issue. :)
Let me know if you have a question.
b0lsc0tt
Main Topics
Browse All Topics





by: b0lsc0ttPosted on 2007-11-20 at 14:28:17ID: 20323884
craigdawson,
Are you not using normal form tags or something besides a submit button? Is there more than one form or submit button?
The behavior you want (pressing Enter submits form) is the default behavior for a form. The reason it is occurring twice is probably this default behavior. What happens if you don't use the onkeypress Event?
Let me know if you have any questions or need more information.
b0lsc0tt