Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q1478

Feedback on: irt.org FAQ Knowledge Base Q1478

Sent by Ed Craft on November 03, 2000 at 15:07:50: - feedback #1951

Worth:
Worth reading

Comments:
It is much easier in IE4 to just give the frame that you want to print focus(). When the form button is clicked the javascript gives focus() to the desired frame and then just call the print() function.

For example, the calling frame:

<script language="Javascript">
function print_report() {
parent.frames[1].focus();
parent.frames[1].print();

}
</script>


<body>

<form>
<div align="center"><center><p><input type="button" value="Print Report" name="B1"
onClick="javascript:print_report();"></p>
</center></div>
</form>
</body>


Just thought you might want to know.


Sent by Rafa Ceres on January 31, 2001 at 07:21:05: - feedback #2305

Worth:
Worth reading

Comments:
It doesn't work under IE5. Explorer presents typical print window (print all, print selected frame...). Printing selected frame does just it: print selected frame, no the one specified in top.framename.print()


Sent by Rafa Ceres on January 31, 2001 at 09:20:57: - feedback #2307

Worth:
Worth reading

Comments:
You've gotta do "top.otherframe.focus()" before printing, otherwise it doesn't work properly in some cases under IE5.


Sent by Roman on June 19, 2001 at 06:45:18: - feedback #2860

Worth:
Very worth reading

Comments:
Are you sure that this is working?.
it works fine with Netscape 4.7, but is does not work with IE 5.5
Any suggestions how to make it work for both browsers?

Thanks for your help

Roman



Sent by Rafa Ceres on August 01, 2001 at 05:35:25: - feedback #3033

Worth:
Very worth reading

Comments:
It works on IE5, but the frame you're trying to print must be in the same server as the frame you are printing from, otherwise you will get an "access denied" error.


©2018 Martin Webb