Re: Printer Friendly Struts Form

2005-09-15 Thread Ed Griebel
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

Re: Printer Friendly Struts Form

2005-09-15 Thread Mario_Hernandez
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

Re: Printer Friendly Struts Form

2005-09-15 Thread Ed Griebel
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

Re: Printer Friendly Struts Form

2005-09-14 Thread Mario_Hernandez
Woops, should have read the rest of the thread as Jeff Deskins had already brought up the media attribute.

Re: Printer Friendly Struts Form

2005-09-14 Thread Mario_Hernandez
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

Re: Printer Friendly Struts Form

2005-09-14 Thread Frank W. Zammetti
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

Re: Printer Friendly Struts Form

2005-09-14 Thread Jeff Deskins
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

Re: Printer Friendly Struts Form

2005-09-14 Thread Frank W. Zammetti
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:

Re: Printer Friendly Struts Form

2005-09-14 Thread Frank W. Zammetti
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

Re: Printer Friendly Struts Form

2005-09-14 Thread Frank W. Zammetti
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

Re: Printer Friendly Struts Form

2005-09-14 Thread Michael Jouravlev
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

Re: Printer Friendly Struts Form

2005-09-14 Thread Frank W. Zammetti
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

Re: Printer Friendly Struts Form

2005-09-14 Thread Michael Jouravlev
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

Re: Printer Friendly Struts Form

2005-09-13 Thread Laurie Harper
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

RE: Printer Friendly Struts Form

2005-09-13 Thread Johnson, Kaerstin
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

Printer Friendly Struts Form

2005-09-13 Thread Jeff Deskins
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