kernschatten
08-22-2003, 10:03 AM
This page only supports I.E. 5+
My page has the following top level flow:
Outer page with navigation -
--iFrame with a 2 panel frameset within it top/bottom (needed to get reporting table columns exactly spaced) (reportFrame)
---Top frame is just a dummy report with the title lines of the frame visibile, rest hidden (reportFrame.topFrame)
---Bottem frame is real report with title lines hidden (reportFrame.mainFrame)
----Bottem frame has another iframe used to re-create a printable report, and other print functions (reportFrame.mainFrame.process)
I have two print functions:
printReport -> uses document.location on reportFrame.mainFrame.process and sets it to the printer-friendly report. This page is cold fusion.
printItemInfo -> two-step process: first is a doc.location on reportFrame.mainFrame.process to a CGI. The CGI then re-directs to a ColdFusion/JavaScript page that does a lot of graphic formatting.
The pages are done in Cold Fusion MX and heavy on the javascript. My problem is that I can print the re-created printer-friendly report from reportFrame.mainFrame.process through <body onLoad"this.focus(); this.print();"> and it works fine. However, when I try the same thing with my second print process (printItemInfo) which uses a lot of javascript, the print doesn't catch. No errors are generated, and javascript after the print calls works. The odd thing is that if I use the browser's back button, the print dialog shows up whenever the previous page is loaded and will then print the current page. I've tried using a call to a function on the top level page, and all the parents that does a blah.frame.focus();blah.frame.print(); and none of those work either. I've also moved the process frame to the top level, and still nothing.
Any Ideas?
My page has the following top level flow:
Outer page with navigation -
--iFrame with a 2 panel frameset within it top/bottom (needed to get reporting table columns exactly spaced) (reportFrame)
---Top frame is just a dummy report with the title lines of the frame visibile, rest hidden (reportFrame.topFrame)
---Bottem frame is real report with title lines hidden (reportFrame.mainFrame)
----Bottem frame has another iframe used to re-create a printable report, and other print functions (reportFrame.mainFrame.process)
I have two print functions:
printReport -> uses document.location on reportFrame.mainFrame.process and sets it to the printer-friendly report. This page is cold fusion.
printItemInfo -> two-step process: first is a doc.location on reportFrame.mainFrame.process to a CGI. The CGI then re-directs to a ColdFusion/JavaScript page that does a lot of graphic formatting.
The pages are done in Cold Fusion MX and heavy on the javascript. My problem is that I can print the re-created printer-friendly report from reportFrame.mainFrame.process through <body onLoad"this.focus(); this.print();"> and it works fine. However, when I try the same thing with my second print process (printItemInfo) which uses a lot of javascript, the print doesn't catch. No errors are generated, and javascript after the print calls works. The odd thing is that if I use the browser's back button, the print dialog shows up whenever the previous page is loaded and will then print the current page. I've tried using a call to a function on the top level page, and all the parents that does a blah.frame.focus();blah.frame.print(); and none of those work either. I've also moved the process frame to the top level, and still nothing.
Any Ideas?