• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED]: what to do with the <return> key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED]: what to do with the <return> key


  • Subject: Re: [SOLVED]: what to do with the <return> key
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Tue, 6 Mar 2007 11:34:12 -0800

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

worked to dis-able the <return> key in a form from going to the first <Submit> button on the page.


Thanks to a lot of folks for submitting other potential ideas for solving the problem.

From: Sam Barnum <email@hidden>

Using display:none causes the browser (Safari, anyway) to ignore the
button when it's looking for the first submit button in a form.

style="visibility:hidden" does not have this behavior.

Probably the best way to ensure it doesn't mess up your layout is to
give it a position:fixed attribute.  This will remove it from the
flow of the rest of the document.  So, the final button might look
like this:

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

---- Baiss Eric Magnusson <http://www.Track-Your-Finances.com> <http://www.CascadeWebDesign.com>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Single sign on in multiple WOApps / passing parameters between apps
  • Next by Date: Re: WOSwitchComponent Problem
  • Previous by thread: Re: Single sign on in multiple WOApps / passing parameters between apps
  • Next by thread: WebObjects 5.3.3, DST and J2SE 1.4.2
  • Index(es):
    • Date
    • Thread