From: Jason Hildebrand <jason@...>
To: webware-discuss <webware-discuss@...>
Actually when I found this "bug / feature" (it depends how you look at
it really) I found a very simple answer to it which really simplified
the whole actions thing. In my forms now I pass a hidden variable named
_action_ and the value is the name of the action, now I can name my
submit button anything I want without worrying that I have named my
action methods something that would make sense to on a web page.
Date: 04 Nov 2002 08:15:20 -0600
Subject: [Webware-discuss] bitten by IE
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:
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
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.
Jason D. Hildebrand