window.print don't work in showModalDialog window. Why?

Discussion in 'Javascript' started by Gilles T., Jan 17, 2004.

  1. Gilles T.

    Gilles T. Guest

    Hi!

    I have a popup window open with the showModalDialog function:
    window.showModalDialog('dialog.aspx',window,"status:no; resizable:yes;
    dialogWidth:900px; dialogHeight: 700px;");

    and in dialog.aspx, I need to print the page with javascript function
    window.print but this function don't work with the showModalDialog window.
    Why?

    Can you send me alternative?

    Thanks
    Gilles T., Jan 17, 2004
    #1
    1. Advertising

  2. Gilles T.

    Jim Ley Guest

    On Sat, 17 Jan 2004 18:48:35 GMT, "Gilles T."
    <> wrote:

    >Hi!
    >
    >I have a popup window open with the showModalDialog function:
    >window.showModalDialog('dialog.aspx',window,"status:no; resizable:yes;
    >dialogWidth:900px; dialogHeight: 700px;");
    >
    >and in dialog.aspx, I need to print the page with javascript function
    >window.print but this function don't work with the showModalDialog window.
    >Why?


    Stick an IFRAME in and print that.

    Jim.
    --
    comp.lang.javascript FAQ - http://jibbering.com/faq/
    Jim Ley, Jan 18, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    853
    Mark Rae
    Dec 21, 2006
  2. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,739
    Smokey Grindel
    Dec 2, 2006
  3. kurt sune
    Replies:
    2
    Views:
    7,422
    imransyed63
    Aug 19, 2008
  4. Jonathan
    Replies:
    0
    Views:
    177
    Jonathan
    Jul 19, 2004
  5. ÕÔ±û·å

    why the following HereDoc print don't work?

    ÕÔ±û·å, Dec 8, 2004, in forum: Perl Misc
    Replies:
    29
    Views:
    281
    Sherm Pendley
    Dec 20, 2004
Loading...

Share This Page