Re: Small Help for Humanitarian Training Center
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Small Help for Humanitarian Training Center

From: Aaron Gray <ang.usenet@gmail.com>
Date: Sun Nov 13 2005 - 17:59:04 CET

> Greetings all,

Hi,

> I wonder if I might be able to get a small amount of help for our
> non-profit English Training Center
> (http://www.servicepartners.org/jordan). I have a computerized level
> test for our center that I need to slightly modify. Unfortunately, I am
> a javascript NOBODY and don't have any experience scripting things.
>
> Basically, when a student takes a level test at our center, the last
> page of the test has an option to print the test. I would like to
> remove the print button and make the printing automatic when the page
> is loaded. I have a default printer loaded on all of the testing
> computers, so I just need it to send the print doc to the default
> printer, preferably without user intervention or a print dialog box.

Try replacing code with :-

    <script>
        window.print();
    </script>

This should just print the current window.

Aaron
Received on Mon Nov 21 03:27:44 2005