Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Printing content of IFRAME

Reply
Thread Tools

Printing content of IFRAME

 
 
Yann Laviolette
Guest
Posts: n/a
 
      01-14-2004
Hi!

I have an IFRAME to link my site to Maporama. All works fine except I
can't print. So here's my code...

<!-- Link to start the printing -->
<a href="#" onClick="printFrame();"><img src="images/printer.jpg" width="24" height="25" border="0"> Imprimer la carte</a>

<!-- IFRAME that link my site to Maporama -->
<iframe id="frame_maporama" class="maporama" name="frame_maporama" src="http://www.maporama.com/share/DriveMe.asp?SESSIONID=%7BD38E9B31-5F6E-494E-B33F-E7A77D423870%7D&COUNTRYCODE=CA&_XgoGCAddress=ch+du +rang+des+gres&_XgoGCTownName=NOTRE-DAME-DU-MONT-CARMEL&Zip=&State=QC&VN=DRIVEME&VV=drv&GO_DRIVEMET O.x=29&GO_DRIVEMETO.y=12" width="700" height="700">
Votre navigateur ne supporte pas cette fonctionnalité.
</iframe>

<!-- Script to print the IFRAME -->
<script language="JavaScript">
function printFrame()
{
var pp = frames[1];
pp.focus();
pp.print();
}
</script>

Before I use the IFRAME, I was using the window.print() method and all
works. This function print the content of the current frame. But now I
want to print the content of the IFRAME.

Can somebody help me?

Thanks

Yann Laviolette


 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      01-14-2004
in post <news(E-Mail Removed)>
Yann Laviolette said:


> I have an IFRAME to link my site [...] All works fine


you only think it does

http://html-faq.com/htmlframes/?framesareevil
http://homepage.ntlworld.com/l_vajzo...eb/frames.html
http://www.karlcore.com/articles/article.php?id=2
http://david.us-lot.org/www/frames/


--
brucie
 
Reply With Quote
 
 
 
 
Whitecrest
Guest
Posts: n/a
 
      01-14-2004
In article <(E-Mail Removed)>,
http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> I have an IFRAME to link my site to Maporama. All works fine except I
> can't print. So here's my code...


I entered "printing IFrame" in google and was rewarded with sample after
sample of code to do exactly what you want.

--
Whitecrest Entertainment
www.whitecrestent.com
 
Reply With Quote
 
Yann Laviolette
Guest
Posts: n/a
 
      01-14-2004
Le Wed, 14 Jan 2004 10:22:02 +1000, brucie a écrit*:

Thanks Brucie,

I'll use something else than the IFRAME to do what I need to do...

Yann

> in post <news(E-Mail Removed)>
> Yann Laviolette said:
>
>
>> I have an IFRAME to link my site [...] All works fine

>
> you only think it does
>
> http://html-faq.com/htmlframes/?framesareevil
> http://homepage.ntlworld.com/l_vajzo...eb/frames.html
> http://www.karlcore.com/articles/article.php?id=2
> http://david.us-lot.org/www/frames/


 
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
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
Printing IFrame is printing whole window contents Amit Javascript 0 09-08-2006 02:19 AM
Printing Iframe content nightstar@gmail.com Javascript 1 10-21-2005 04:56 AM
How To pop content into bottom IFrame from top IFrame nc Javascript 0 08-10-2004 01:19 PM
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