I was thinking that one could use javascript if you wanted to have a
button that would do a "print preview", and then swap the css display
attribute for the media types. I guess it's not really that useful,
but still "neat" to modify the style on the fly :-)
-ed
On 9/15/05, [EMAIL PROTECTED] <[EM
Ed,
I'm not sure why you would need to use javacript to change the the media
attribute. If you just output the both at the same time, the styles with
media set to screen get applied only on your monitor and while the
media=print styles are ignored. The reverse is true when you send the page
t
This is a creative idea for presentation, and the attribute can be
changed by simple javascript. But, there might be an application
access/security issue with this if this method is used for display of
read-only data, as you are sending an editable version of the form
even though it's hidden. Some
Woops, should have read the rest of the thread as Jeff Deskins had already
brought up the media attribute.
Here's a solution for you, but I don't know its applicability to Firefox,
and won't work for inline styling.
1. Start by outputting the information in a text area and in a div/span.
2. Give each different class names/ids, say foo and bar respectivly.
3. Link to your stylesheet or declare your
W. Zammetti" <[EMAIL PROTECTED]>
To: "Frank W. Zammetti" <[EMAIL PROTECTED]>
Date: Wed, 14 Sep 2005 13:39:02 -0400 (EDT)
Subject: Re: Printer Friendly Struts Form
Even better, use display:none; on the checkboxes and radios so everything
lines up right. Updated:
Test
.c
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Frank W. Zammetti" <[EMAIL PROTECTED]>
Date: Wed, 14 Sep 2005 13:39:02 -0400 (EDT)
Subject: Re: Printer Friendly Struts Form
Even better, use display:none; on the checkboxes and radios so everything
lines up right. Up
Even better, use display:none; on the checkboxes and radios so everything
lines up right. Updated:
Test
.cssNoBorder {
border : 0 solid #ff;
overflow : hidden;
background-color : #ff;
}
Button:
Text:
Select:
Actually, for the checkboxes and radios you can set visibility:hidden; on
them and it will actually hide the checkbox or radio itself, not the
associated text, so that's pretty good. Just gotta find a way to deal
with the selects.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex
Yeah, no good... Below is a quick test you can play with. I couldn't
figure out how to get the selects to work like the rest. Checkboxes and
radios too it doesn't like you can do much with, but they may be OK. Here
you go though, pretty simple stuff...
Test
.cssNoBorder {
border : 0 so
This is what I was thinking where problem was. I don't know if CSS can
control borders (and arrows for comboboxes) of input elements.
On 9/14/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Laurie had the right idea... you can disable the border for form fields,
> and that's what you would want
Laurie had the right idea... you can disable the border for form fields,
and that's what you would want your stylesheet to do. You may run into
some fields that can't be controlled like that, I've never tried to do
them all (specifically I'm thinking of selects, which seem to be a world
unto thems
On 9/13/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Jeff Deskins wrote:
> > Is there a way to display all inputs/textareas of a struts form as plain
> > text for a printer-friendly version of a page?
> >
> > This would be similar to how the readonly attribute of a form currently
> > works in str
Jeff Deskins wrote:
Is there a way to display all inputs/textareas of a struts form as plain
text for a printer-friendly version of a page?
This would be similar to how the readonly attribute of a form currently
works in struts, by changing all fields to readonly. However, in this case,
I am
TED]
Sent: Tuesday, September 13, 2005 4:58 PM
To: user@struts.apache.org
Subject: Printer Friendly Struts Form
Is there a way to display all inputs/textareas of a struts form as plain
text for a printer-friendly version of a page?
This would be similar to how the readonly attribute of a form
Is there a way to display all inputs/textareas of a struts form as plain
text for a printer-friendly version of a page?
This would be similar to how the readonly attribute of a form currently
works in struts, by changing all fields to readonly. However, in this case,
I am looking for something
16 matches
Mail list logo