This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

print all the frames in a page

 
Tom Chen
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how to:
I've a page with 2 frames. On the top frame, I need a button to print the all page. I tried:
"window.print()"
"parent.window.print()"
"top.print()"
however, all of them only print the top frame. What javascript I should use to print out the whole page including these 2 frames.
Thanks a lot
[ January 22, 2002: Message edited by: Tom Chen ]
[ January 22, 2002: Message edited by: Tom Chen ]
 
Vijay S. Rathore
Ranch Hand
Posts: 449
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom Chen,
As per I know the printing of frame is a property of the print option. You have to do the setting in your print option to print is as laid on the screen. Through Javascripts you can't control that feature.

Vijay
 
Tom Chen
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've tried your method. It works. However,Is there other programming way to control that feature. Because User doesn't not accept this mannual way.
The 2nd question, how can I just print the 2nd frame of the page using javascript?
Thanks,
Tom Chen
Originally posted by Vijay Rathore:
Hi Tom Chen,
As per I know the printing of frame is a property of the print option. You have to do the setting in your print option to print is as laid on the screen. Through Javascripts you can't control that feature.

Vijay

[ January 23, 2002: Message edited by: Tom Chen ]
 
Vijay S. Rathore
Ranch Hand
Posts: 449
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am handling this issue by adding a print preview button in my frame. As soon as user clicks the button I am building another webpage with all the data in it with a button print and close on the web page or to be more precise the popup. Try this trick.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic