Putting:

<input type="hidden" name="_action_deleteCustomer" value="deleteCustomer">

In the form works for me, if someone hits Enter, that field gets sent, and
my action is called.  It won't work for multiple submit buttons, but I
usually don't use those anyways (or if I do, I use seperate forms).

Sean

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:webware-discuss-admin@;lists.sourceforge.net]On Behalf Of Aaron
Held
Sent: Monday, November 04, 2002 7:06 AM
To: Jason Hildebrand
Cc: webware-discuss
Subject: Re: [Webware-discuss] bitten by IE



You used to be able to stop this by putting two forms on the page, but I
just tried that and I can still submit by hitting enter.

Personally I always use FunFormKit to handle any form input and rely on
actions for single click inputs, like clicking the top of a column to
sort a table.

Try FFK, its the cleanest form handler I've every worked with.

-Aaron



Jason Hildebrand wrote:
> Hi all,
>
> I tracked down the source of some recent tracebacks.  It seems that on
> IE, if you're in a text field of a form and hit enter, the form gets
> submitted _without_ the name/value of any submit button included in the
> form data, so none of your actions will get called, and writeHTML will
> be called instead.
>
> This behaviour in IE is written up (in some detail) here:
>     http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html
>
> I like the concept of actions, but this behaviour seems to render them
> largely useless, since you can't count on them being called.  Instead
> you have to hack your respond() mechanism to have a default action, or
> simply do all of your processing in writeContent(), neither of which
> seems terribly appealing to me.  Using javascript to disable
> enter-submission doesn't seem appealing either.
>
> Since I'm sure I'm not the first to deal with this problem, I'm
> wondering how other people cope with this in a clean way.
>




-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to