SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Print PopUp

  1. #1
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Print PopUp

    What I want to do is have the user click a link to popup a window, I want to use document.write to insert a data table from the calling page. I am doing this becuase I need to strip out all but the actual data. I cannot create a separate page for printing.

    I am able to get the element by using document.getElementById('dataTable'), but I do not know how to past the table into the new window.

    How can I do this?

    Thanks...

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not just use a print style sheet, and set display:none for everything but the data table?
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •