Re: Frame Printing??
- From: "Trevor L." <Trevor L.@Canberra>
- Date: Sat, 28 Jan 2006 14:57:06 +1100
Randy Webb wrote:
> That's odd, you shouldn't change the .src property of a frame, you
> should change its location.href property.
>
> frameRef.focus();
> frameRef.print();
>
> As long as frameRef is a reference to the frame itself, it doesn't
> matter where you call it from, as long as you get a reference to it.
I agree with Randy
I use this
function print_page()
{
if (window.print)
{ parent.index_main.focus()
top.frames['index_main'].print() }
else
alert("Select \"Print\" from the menu")
}
This function is called from frame named "sidebar" to print a frame named
"index_main"
In fact Randy's reply implies it could perhaps be as simple as
if (window.print)
{ index_main.focus()
index_main.print() }
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
.
- Follow-Ups:
- Re: Frame Printing??
- From: Randy Webb
- Re: Frame Printing??
- References:
- Frame Printing??
- From: Marc Ferguson
- Re: Frame Printing??
- From: Randy Webb
- Re: Frame Printing??
- From: Marc Ferguson
- Re: Frame Printing??
- From: Randy Webb
- Frame Printing??
- Prev by Date: Re: Frame Printing??
- Next by Date: Re: Javascript performance in Internet Explorer 6 on windows XP SP2 worse than equivalent on Windows 2000
- Previous by thread: Re: Frame Printing??
- Next by thread: Re: Frame Printing??
- Index(es):
Relevant Pages
|