[thelist] CF form won't submit on enter

jeff jeff at members.evolt.org
Thu Feb 8 19:35:18 CST 2001


erika,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Erika Meyer
:
: I inherited this semi-finished 3rd
: party-created site . . .
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

don't you just love it when you get those kinds of jobs?

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: <input name="submit" type="image" src="images/go.gif">
:
: They won't submit when the user hits "enter."
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

i think that is the default behavior when using image submits.  the browser
is expecting to take a click somewhere on the image to pass those results to
the server as x/y coordinates.  submitting on enter wouldn't pass those
values so it doesn't allow enter to submit.  fortunately, this isn't unique
to your situation.  it's just how image submits work.

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: In some cases (for example, when searching
: for photos by key word) I think this is
: horribly misleading: hitting "enter" reloads
: the form, and it looks like the form found
: nothing in the database, when in fact the
: form was never submitted.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

this is most likely caused by something unique to this particular
implementation.  without seeing more of the code that makes up the form it
would be difficult to diagnose the problem.

thanks,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org





More information about the thelist mailing list