moock.org is supported in part by


May 21, 2003

a study in flash form submission

i recently published a new article at oreillynet.com covering submitting forms with the ENTER key. here's the opening paragraph:

"With the release of Flash MX's Flash UI components, building forms got a lot easier, but form submission itself is still trickier in Flash than it is in HTML. In HTML, forms can be submitted via a submit button or "automagically" via the Enter key. Flash does not have built-in support for Enter-key form submission, so we must handle the Enter key manually. The remainder of this article explains how to do just that."

Posted by moock at May 21, 2003 10:12 AM
Comments

true, for multiline text fields, you'd want to disable the submission. that's pretty easy to do: just don't add the Enter key listener to the multiline field. HTML forms don't do auto-form submission from multiline fields either.

Posted by: colin at June 9, 2003 11:24 PM

The bad thing is that it doesn't work when you use multiline textField, because user maybe doens't want to send the form pushing ENTER, and he only want to make a line break.
:(

Posted by: dasso at June 8, 2003 07:51 AM

iyuyir .ghru. byebeio

Posted by: Flávio at May 24, 2003 03:38 PM

/*
I am going to comment for the sake of commenting.. and because moock rocks.
*/

Posted by: Dan Rogers at May 22, 2003 09:56 PM