Y
Yann Laviolette
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/Drive...ME&VV=drv&GO_DRIVEMETO.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
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/Drive...ME&VV=drv&GO_DRIVEMETO.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