You can also use a regular submit button and hide it using CSS. Make this the first button in your form:

<input type="submit" style="position:fixed;visibility:hidden;"/>

Pressing enter will now trigger this button, which isn't dynamic, so shouldn't do anything (as long as the form action is not set).

Note: using display:none in your CSS will effectively disable the button, which means the next submit button after it would become the default. If you only set visibility to hidden, the button still takes up space. Changing to fixed position means it doesn't take up any space.

I don't think the blank tabindex is needed since the button is hidden, but it probably wouldn't hurt.

On Apr 25, 2006, at 3:00 PM, Paul Lynch wrote:


On 25 Apr 2006, at 22:13, Chuck Hill wrote:


On Apr 25, 2006, at 2:03 PM, Paul Lynch wrote:

My favourite submit button related glitch is when you use a button inside a repetition, and your web designer set an id or name tag (one or the other, I forget which) for the button, causing WO to treat them all the same as if the first button in the repetition was clicked.

It is the name and this affects any form inputs of any sort in a repetition. For inputs, it only takes one value. I still clearly remember the first time I hit this, years ago. I was new to WO and thought I was losing my mind.

Thanks.

I am sufficiently paranoid now that I check for this whenever I get html created by a web designer, as well as other favourites, like including a form tag that doesn't wrap the items it needs to submit, etc.

Paul

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/samlist% 40prometheus-systems.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to