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

    Join Date
    Jun 2004
    Posts
    2
    Rep Power
    0

    Print selected check item


    I believe javascript can do when one or more checkboxes are check then press the "Print" button instead of print the entire page.

    Is there an example for this or this can be done by other than javascript?

    Thanks in advance for reading my question. Thanks
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,134
    Rep Power
    120
    You could create a printer friendly page and have a button redirect end user, to that page or... an even easier way... would be to set-up print media CSS style; for a printer friendly version of the current page. Something like below:
    Code:
    <style type="text/css" media="print">
    /* add printer friendly styles here */
    </style>
    
    or...
    
    <link rel="stylesheet" type="text/css" href="printer_friendly.css" media="print"/>
    
    or...
    
    @import url("printer_friendly.css") print;
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    2
    Rep Power
    0
    Originally Posted by web_loone08
    You could create a printer friendly page and have a button redirect end user, to that page or... an even easier way... would be to set-up print media CSS style; for a printer friendly version of the current page. Something like below:
    Code:
    <style type="text/css" media="print">
    /* add printer friendly styles here */
    </style>
    
    or...
    
    <link rel="stylesheet" type="text/css" href="printer_friendly.css" media="print"/>
    
    or...
    
    @import url("printer_friendly.css") print;
    K, i will give it a try. Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo