• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Give me solution for my problem

 
Diya charu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

Can you help me out. i am very new to javascript,
In my page i have many paragraphs and scrollable table. i want to print only table.
Is it possible to print only table without printing entire page?
currently i am using window.print() in javascript,but its print entire page.
 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Diya,
One thing you can do is parse the whole HTML document and take only the content between <table> and </table> tags. This should give the whole table. Then print the same.

Hope this helps
 
Diya charu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shiva,

I am new to this javascript. can you explain in detail how to parse html document.Thanks for your previous reply.


with regards
charu
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CSS Print Media

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic