SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Print Question

  1. #1
    SitePoint Member
    Join Date
    Dec 2005
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Print Question

    How can I pirnt only one containt or something from the hole page..
    I mean I have a page which has images and text and dynamic table with data..
    I need to print only the table and data.
    Thanks

  2. #2
    _ silver trophy ses5909's Avatar
    Join Date
    Jul 2003
    Location
    NoVa
    Posts
    5,467
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Could you please clarify your question? Are you printing all of this out from a javascript function? Explain the background scenario so we can visualize what you are asking.
    Sara

  3. #3
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,449
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    If you designed the site you can use CSS to only print what portions of the page you want printed:

    <link rel="stylesheet" type="text/css" href="/css/screen.css" media="print" />

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,595
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Stylesheets are the way to go. They are intended to define how the page should appear when viewed using different media.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •