Hi all.
I have a 3-frame web site (left,top,main) and i insterted a "print" function in the top frame.The print function only prints the main frame, calling the following easy code:
Everything works fine as long as main frame contains an individual document.
If the doc in the main frame is, on its turn, divided into 3 frames (let's call them B1,B2,B3), the PrintPage() function will print (of course) the 3 frames on 3 separated papers.
I'd like to print only B2 frame but the following function (and all similar):
returns an "ACCESS DENIED" error.
Any idea or hint?
As a workaround, i could accept the function to print the 3 inner frames, if only they were printed on a single paper!
Thank you in advance, have a nice 2004
David
I have a 3-frame web site (left,top,main) and i insterted a "print" function in the top frame.The print function only prints the main frame, calling the following easy code:
Code:
function PrintPage()
{
parent.main.focus();
parent.main.print();
}
If the doc in the main frame is, on its turn, divided into 3 frames (let's call them B1,B2,B3), the PrintPage() function will print (of course) the 3 frames on 3 separated papers.
I'd like to print only B2 frame but the following function (and all similar):
Code:
function printpage()
{
var bodyframe=parent.frames.main;
bodyframe.frames.B2.focus();
bodyframe.frames.B2.print();
}
Any idea or hint?
As a workaround, i could accept the function to print the 3 inner frames, if only they were printed on a single paper!
Thank you in advance, have a nice 2004
David