Hi Paul,

that one's actually quite simple:

With all browsers I know the ENTER key-click is auto-associated with a form's HTML SUBMIT input type.

That way it will, in essence, work automatically (a.k.a. by default) once your form has a submit button and, as a consequence, not necessarily do so, if you e.g. submit the form via a regular (JavaScript-)link or any other type of scripting.

So in case of doubt go for a styled SUBMIT-button and catch the submit event to do your script work (if any), rather than linking to the script function from a button image.

Best,

Bardo


Am 21.12.2012 00:06, schrieb Paul Joseph:
Hi there,

On some of my forms when I click the Enter key, nothing happens.

On others though, the form "submits itself".

I can't find any documentation readily that explains why I see this difference...any pointers would be much appreciated.

(Cocoon 2.1.11, Tomcat 7.x)

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to