[Javascript] Printing forms

Allard Schripsema allard-schripsema at procergs.rs.gov.br
Tue Oct 5 14:51:47 CDT 2004


Hi All,

I have a question for you all,(couldn?t find an answer on the internet)
related to printing forms (in IE):
How do you avoid the problem of not printing the complete content of a
form-element?

Example: A form with a textarea with 4 lines, but the content has 8 lines
(and a scrollbar), or a textinput with size < maxlength etc....

Printing those will give you only the visible part, not the complete
content.

What i?m looking for is a (more or less) generic function/idea/solution

One option i can see is temporary changing sizes, rows and columns ect,
Another is getting the innerHTML of the body and removing all unnecessary
code before printing... (What is important at the moment is the content, not
the layout)

It should be a generic solution, because it must work on more than 1000
forms... (WBIS)

Anybody has already tackled this problem?
Ideas?

Thanks,
Allard







More information about the Javascript mailing list