Re: Frame Printing??

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.



Relevant Pages

  • Re: Frame Printing??
    ... I believe that "frame" is the actual frame object so I'm guessing you call the print method outside of the frame you want to print. ... I know I have the right object, I'm able to change the src property, but it's not printing. ... 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. ...
    (microsoft.public.scripting.jscript)
  • Re: Is it possible to open two frames with one URL?
    ... Randy Webb wrote: ... frame preserving the menu frame. ... Easy peasy. ...
    (comp.lang.javascript)
  • Re: Galilean transformation explanation of MMX
    ... Cartesian coordinates S to represent the frame of reference of the ... where it is reflected by the mirror. ... Nobody knows the essence of the physics they are talking ...
    (sci.physics.relativity)
  • Re: .Re: Why all the fascination with E = mc^2 ??
    ... specific frame of reference. ... >> No. Einstein took the classical Conservation of Energy is both frames. ... >> had already calculated how the energy of radiation transforms between ...
    (sci.physics)
  • Re: .Re: Why all the fascination with E = mc^2 ??
    ... specific frame of reference. ... >> No. Einstein took the classical Conservation of Energy is both frames. ... >> had already calculated how the energy of radiation transforms between ...
    (sci.physics.relativity)