Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   The Lounge (http://www.velocityreviews.com/forums/f9-the-lounge.html)
-   -   print all the contents of the iframe (http://www.velocityreviews.com/forums/t674228-print-all-the-contents-of-the-iframe.html)

lebohang 03-04-2009 07:50 AM

print all the contents of the iframe
 
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.


All times are GMT. The time now is 01:58 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.