Thanks. Bob and Andrew
My function print_page() is in an extermal.js file and I forgot to link it
in the head section. I looked at this many times and I missed it :-(
I set this function up on advice from a NG contributor (I think it was
Murray) to cater for different browsers/platforms
function print_page(where)
{
(document.all && (navigator.platform.indexOf("ac") != -1))
? alert("Select \"Print\" from the menu")
: where
? where.window.print()
: window.print();
}
For most browsers this resolves to window.print() , which I guess is
synonymous with print.this() suggested by Andrew.
Bob,
The onload="top.frames['heading'].getHeading('Carole\'s Blog');" is a call
to function getHeading() in a frame named heading, which is one level down
from the top. It alters the title in the Heading page (not the system
<title> but a heading) to the parameter passed to it.
It took a bit of figuring out and help from the many experts to get this
right. Unfortunately, it causes a "Permission Denied" error in FP. Mr.
Thomas A. Rowe said this is fairly normal, and that I should preview in IE
or Firefox (or wherever), as FP doesn't always do the right thing in Preview
mode !!
I am in Aussieland as is Andrew. I wonder where you are Bob. In the USA it
would be nearly 1 a.m. Eastern time (I think)
--
Thanks to both,
Trevor L.
Website:
http://tandcl.homemail.com.au
Bob Lehmann said:
You're calling a function - print_page() - that is not defined anywhere.
Not relevant to your print problem, but what is this all about?...
<body onload="top.frames['heading'].getHeading('Carole\'s Blog');">
Bob Lehmann
Trevor L. said:
Can anyone tell me why I get an error when I try to print this page
http://tandcl.homemail.com.au/blogcarole.html
--
Cheers,
Trevor L.
Website:
http://tandcl.homemail.com.au
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html