Forum Moderators: open

Message Too Old, No Replies

How do I set individual Javascript Print Buttons for sections of a page?

         

Akshit

2:16 pm on May 21, 2004 (gmt 0)

10+ Year Member



I want to print some content(only one table's data) how can i achive this i know how to print the whole page but for this i dont know plz help me.

Robino

2:19 pm on May 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




Select the text (content), copy it and then paste it into a text editor. Then print it.

ogletree

2:26 pm on May 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In IE or any windows browser you can select the text and when you go to print select "Selection"

Akshit

2:47 pm on May 21, 2004 (gmt 0)

10+ Year Member



Ectually i have more then 10 different tables in one page each contain a print button when user click on that button the content of that table should be printed.as we have Javascript:window.print() for print whole page ,how can i achive that for a table.
hope that now you understand my problem.

Rambo Tribble

1:52 am on May 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Although someone may have a better solution, the only way I can see to do this is to place each table in a separate iframe. Then the window.print() function should just print the contents of the iframe it is called upon.