Mtek a écrit :
I used your example. The screen came up and I entered some text and
hit return and got the windows print dialog. However, when I printed,
I just got a blank page with a frame around it......
Normal.
In the example it was written : "then hit [Print]"
perhaps would I have to write "then press this button [Print]"
Anyway, it wasn't written "hit the Enter key"
There is an onchange function in the textarea to copy its content in the
hidden div, so you have first to leave this textarea (clicking somewhere
outside of it) then you will be able to print the filled hidden div
(with the print menu of your browser if you want or the print button on
the page)
Maybe I am the dingbat here and not understanding. But the page has
menus on it, drop downs and scroll boxes.
I don't know what are scroll boxes ...
The report though will be well formatted like this:
Customer Name Customer ID .........
------------- -----------
John Doe 5498
Jane Doe 2209
So, can that really be done??
Thanks for your help thusfar.....
Put your file as is somewhere on the Net we can see where you are with
your code.
And tell witch part of the page you want to print
Tim B gave you a good url to see how to do without no hidden div, just
using the CSS.
<style type="text/css" media="print">
* { visibility: hidden }
.prt,
.prt optgroup,
.prt option{ visibility: visible }
</style>
<h1> test of the day</h1>
<form>
<p class="prt"> Today's Date: 06/14/2008</p>
<select size=3 class="prt">
<optgroup label="Customer Name ">
<option>John Doe
<option>Jane Doe
</optgroup>
</select>
<select size=3 class="prt">
<optgroup label="Customer ID ">
<option>5498
<option>2209
</optgroup>
</select>
<p>blah
<p><input type=reset>
</form>
<p>footer