#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    CA US
    Posts
    62
    Rep Power
    15

    JavaScript Print wait until finished


    I have run into a situation where I need to print a page, but we do not want to see any of the buttons in the printout. I am trying something like:
    - The URL is print.asp
    - The print link on the page is to print.asp?print=true
    - I trap for the request var of print and want to run this code.
    document.thisForm.myButton.style.visibility="hidden";
    printPage();
    top.location.replace("print.asp");
    This way it will print and then push back the page with the buttons.

    The challenge is that the code doesn't wait for the print dialog to pop, it just hides the button and then pushes the new page.

    I hope this makes since, and thank you in advance for any help.

    Thank you,

    Scott
    Last edited by ScottBP; March 28th, 2002 at 08:58 PM.

IMN logo majestic logo threadwatch logo seochat tools logo