Print a document without showing it? I'm almost there... but...

Discussion in 'Javascript' started by Julius Mong, Apr 17, 2004.

  1. Julius Mong

    Julius Mong Guest

    Dear all, I have :

    function printPage() {

    top.printer.location.href="svg/"+svg[document.getElementById("currIndex").va
    lue]+"_1.svg";
    setTimeout("top.printer.focus();top.printer.print();", 5000);
    }

    in a frame called right in ta frameset:

    <frameset cols="150,465,185,*" bordercolor='#ffffff' border='0' >
    <frame name='left' src='left.html' scrolling='auto' border='0' />
    <frame name='center' src='page.html' scrolling='no' border='0' />
    <frame name='right' src='right.html' scrolling='auto' border='0' />
    <frame name='printer' src='blank.html' scrolling='auto' border='0' />
    </frameset>

    Now I run the function printPage in right.html to load an svg document in
    printer frame and then gain focus and print it. If I set the cols to 150, *,
    185, * (i.e. showing the printer frame in the viewable win area) then it
    prints fine with the svg loaded, but if i did just 150,465,185,* (i.e. not
    showing the printer frame), no matter how long I wait for hte SVG to load
    using setTimeOut it will print a blank page...

    Can someone tell me what I'm missing? Or am I out of luck here?

    Thanx, Jules
     
    Julius Mong, Apr 17, 2004
    #1
    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. adMjb

    ul's again, almost there

    adMjb, Aug 22, 2005, in forum: XML
    Replies:
    1
    Views:
    473
    adMjb
    Aug 22, 2005
  2. Alan Searle

    Scrolling tables ... almost there

    Alan Searle, Nov 2, 2007, in forum: HTML
    Replies:
    5
    Views:
    382
    Bone Ur
    Nov 3, 2007
  3. Simon Harris

    Paging Recordset - Almost There

    Simon Harris, May 30, 2007, in forum: ASP General
    Replies:
    2
    Views:
    113
    Simon Harris
    May 31, 2007
  4. David Askew

    almost there

    David Askew, Jul 31, 2006, in forum: Ruby
    Replies:
    0
    Views:
    87
    David Askew
    Jul 31, 2006
  5. Aryk Grosz
    Replies:
    4
    Views:
    258
    Aryk Grosz
    Oct 10, 2008
Loading...

Share This Page