chrismassey
Programmer
Hello,
I have a section of javascript here:
<A HREF="javascript:contentframe.print()">Print Page</A>
Now this simply opens up the print dialog box, and will print the contents of the I-Frame "contentframe".
I am now no longer using frames across my website and instead using perl and php to display the contents of the contentframe inside a table cell instead.
This means that my javascript print button can no longer work because there is no frame. I cannot use "window" because this will print the entire page including the left links and the header banner.
My first solution was to display an iframe with a height and width of 0, although a tiny piece of the iframe is still visible in firefox.
Is there a way to adapt the javascript print code so that instead of choosing which frame it prints, to choose a URL it prints. E.g.
<A HREF="javascript: Page</A>
Thanks
Chris
I have a section of javascript here:
<A HREF="javascript:contentframe.print()">Print Page</A>
Now this simply opens up the print dialog box, and will print the contents of the I-Frame "contentframe".
I am now no longer using frames across my website and instead using perl and php to display the contents of the contentframe inside a table cell instead.
This means that my javascript print button can no longer work because there is no frame. I cannot use "window" because this will print the entire page including the left links and the header banner.
My first solution was to display an iframe with a height and width of 0, although a tiny piece of the iframe is still visible in firefox.
Is there a way to adapt the javascript print code so that instead of choosing which frame it prints, to choose a URL it prints. E.g.
<A HREF="javascript: Page</A>
Thanks
Chris