Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>print Question

print Question

nospirit
01-08-2006, 03:39 PM
How can I pirnt only one containt or something from the hole page..
I mean I have a page which has images and text and dynamic table with data..
I need to print only the table and data.
Thanks

vwphillips
01-08-2006, 05:11 PM
number of ways

the one I prefer
is to have the no print elements in divs
and the print element in a separate div

then

noprintobject.style.display='none';
window.print();
noprintobject.style.display='';

felgall
01-08-2006, 09:40 PM
You don't use Javascript to control what prints. You should use stylesheets for that because that is part of what stylesheets are for.

Simply set up a separate stylesheet with media="print" and define in there wat should not appear in the output when the page is printed.


 

TOP

Hyperthreading hurts s
HP sharpens blade PC l
Apple goes for Quad po
Itanium gets scaled do

For more info

Hyperthreading hurts s
HP sharpens blade PC l
problem with an ImageP
Modifying a navigation
convert text to intege
Anyone knows to clear 
Automatically generate
document.getElementByI
Hi question about stor
Netscape Problems :-( 

News Archive

Month and Year drop do
navigation button/imag
doubt in window.open()
undo redo script 
Mimick "View Source" w
print Question 
No-image representatio
What's wrong with this
Urgent help in Javascr
Gurt Menu assistance 

Related stories:

Month and Year drop down selection boxes
navigation button/image
doubt in window.open()
undo redo script
Mimick "View Source" with JavaScript
No-image representation

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics