Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Discussion > The Lounge > print all the contents of the iframe

Reply
Thread Tools

print all the contents of the iframe

 
 
lebohang lebohang is offline
Junior Member
Join Date: Mar 2009
Posts: 3
 
      03-04-2009
Hi all,

I currently have a script that prints an Iframe from a different frame and it looks like this:

</span><span class="style4"><a class="style2" href="printFrame">
<span class="style6">Print current report</span></a></span>

<script language="javascript" type="text/javascript">
function printFrame() {
parent.frames['mainpage'].window.frames['pageframe'].focus();
parent.frames['mainpage'].window.frames['pageframe'].print();
}
</script>
where 'pageframe' is my Iframe and 'mainframe' is the frame where the iframe is sitting.

The problem is that the script only prints the contents of the iframe that is currently showing on the screen-and not everything that's on the iframe.

Can anyone tell me how I can make this print all the contents of the iframe.

Any help will be much appreciated.

Thanks in advance.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing all contents of Iframe lebohang Software 1 01-25-2011 04:56 AM
if innerHTML used twice then it replaces the contents i want it to display all the contents virendra.amritkar@gmail.com Javascript 0 06-29-2007 08:13 AM
Print only iframe using window.print() FatBo Javascript 0 12-20-2005 09:37 AM
Unlarging the print to print using PDF file to print Bun Mui Computer Support 3 09-13-2004 03:15 AM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM



Advertisments