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;"/>
On Mar 5, 2007, at 3:35 PM, Chuck Hill wrote:
I'd go with display: none over visibility: hidden. The former will
not take up any screen space. Visibility: hidden can do odd things
to the screen real-estate.
Chuck
CSS - for when HTML, JavaScript, and Java hacking are just not bad
enough
On Mar 5, 2007, at 3:27 PM, Guido Neitzer wrote:
On 05.03.2007, at 16:05, Mike Schrag wrote:
If you use Project Wonder, this is an option on WOForm
(ERXWOForm, which gets patched in as WOForm) ... You can either
pass in addDefaultSubmitButton = true, or set
er.extensions.ERXWOForm.addDefaultSubmitButtonDefault = true in
Properties and it will make a hidden submit button like Sam talks
about.
Yeah, but this:
<input type=\"submit\" style=\"position: absolute; left: -100px;
top: -1000px; \" name=\"WOFormDummySubmit\" value=
\"WOFormDummySubmit\" />"
should perhaps really be a 'style="visibility: hidden;" thing. As
far as I know, you can get really weird results with the
positioning thing above. But there might be advantages of the
stuff above I don't see - it just gave us some headache a couple
of months ago where this submit button came from that broke our
css layout ... ;-)
cug
_______________________________________________
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/chill%
40global-village.net
This email sent to [EMAIL PROTECTED]
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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/sam%
40360works.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]