printing dynamic content from a popup?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gb

    #1

    printing dynamic content from a popup?

    Hi,

    How do you print a dynamically produced popup. Everything I try such as
    self.print() prints out the original or parent page.

    Banging my head against a wall time?

    Can the popup object be named and referenced through the DOM. The popup
    object has been named in the window.open() method. But all references to
    this fail to print the current window.

    Cheers

    gb


  • Lasse Reichstein Nielsen

    #2
    Re: printing dynamic content from a popup?

    "gb" <gb@tinyworld.c o.uk> writes:
    [color=blue]
    > How do you print a dynamically produced popup. Everything I try such as
    > self.print() prints out the original or parent page.[/color]

    I believe IE always prints the page that has the focus. Try
    self.focus();se lf.print();
    on the popup page. If that doesn't work, I can't guess the problem
    without seeing the page.
    [color=blue]
    > Banging my head against a wall time?[/color]

    Always! :)
    [color=blue]
    > Can the popup object be named and referenced through the DOM.[/color]

    No, not through the DOM. The window.open call returns a reference
    to the new window, so store it somewhere safe.
    [color=blue]
    > The popup object has been named in the window.open() method. But all
    > references to this fail to print the current window.[/color]

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • gb

      #3
      Re: printing dynamic content from a popup?


      "Lasse Reichstein Nielsen" <lrn@hotpop.com > wrote in message
      news:smk5ivgv.f sf@hotpop.com.. .[color=blue]
      > "gb" <gb@tinyworld.c o.uk> writes:
      >
      > I believe IE always prints the page that has the focus. Try
      > self.focus();se lf.print();
      > on the popup page.[color=green]
      > > Banging my head against a wall time?[/color]
      >
      > Always! :)
      >[/color]

      Tried "self.focus();s elf.print();" before but to no avail, thanks for your
      help.

      Now where's that wall? 8-)

      gb


      Comment

      • rf

        #4
        Re: printing dynamic content from a popup?


        "gb" <gb@tinyworld.c o.uk> wrote in message
        news:3fca2e55$1 _2@mk-nntp-2.news.uk.tisca li.com...[color=blue]
        > Hi,
        >
        > How do you print a dynamically produced popup. Everything I try such as
        > self.print() prints out the original or parent page.[/color]

        Where is the code that contains self.print()? In the original page or in the
        popup page?

        Cheers
        Richard.


        Comment

        Working...