Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-08-2004, 12:10 PM   PM User | #1
cyber_rider
New to the CF scene

 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cyber_rider is an unknown quantity at this point
printing a page from a browser

i there

i want to print a page from a browser with a function in javascript, but i don't want the header and the footer on the printed paper.

how can i make to desappear the header and the footer from the printed page?

to make disapper other items i put the visibility of them hidden with the following statment:

<item>.style.visuibility="hidden";

can i make the same to the header and footer? what is the property?

thanks...
cyber_rider is offline   Reply With Quote
Old 06-18-2004, 12:22 PM   PM User | #2
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
What do you mean by "header" and "footer"?
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Old 06-21-2004, 06:50 AM   PM User | #3
purplemonkey
New to the CF scene

 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
purplemonkey is an unknown quantity at this point
Use Print Templates (introduced in IE 5 onwards - lots of documentation on MSDN on how to use), or there are ActiveX objects available (scriptX by Mead).

If you are after a cross browser solution, and don't have access to the PCs (ie in an intranet environment), then I don't think there is a way.
purplemonkey is offline   Reply With Quote
Old 06-21-2004, 10:58 AM   PM User | #4
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
For cross-browser solution, just add an instruction in your page on how to remove the header and footer in the File -> Page Setup dialog box.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:31 AM.


Advertisement
Log in to turn off these ads.