Printable coupon
Results 1 to 14 of 14

Thread: Printable coupon

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    1,534

    Printable coupon

    How do I make a coupon I made on my website print to their default printer. I'm using dreamweaver 8.

  2. #2
    Driver Terrier NooNoo's Avatar
    Join Date
    Dec 2000
    Location
    UK
    Posts
    31,824
    Do you mean automatically? Without them hitting the print button?

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    1,534
    yes is there a way to do that?

  4. #4
    Driver Terrier NooNoo's Avatar
    Join Date
    Dec 2000
    Location
    UK
    Posts
    31,824
    Think this through Kodiak, you really want to bypass their security and send something to print without the user's permission?

  5. #5
    Registered User
    Join Date
    Mar 2005
    Posts
    1,534
    I mean when they click on the coupon it prints to their printer so they can print it and bring it in for whatever off on my services. I meant automatically but they need to hit a print button first. Sorry about that.
    Last edited by Kodiak; May 18th, 2009 at 09:57 AM.

  6. #6
    Registered User CeeBee's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    2,494
    Add a print link calling a javascript:
    Code:
    <a href="javascript:window.print()">Print the page</a>
    Of course your imagination can put it as a button or as a script called upon page being loaded...

  7. #7
    Driver Terrier NooNoo's Avatar
    Join Date
    Dec 2000
    Location
    UK
    Posts
    31,824
    Phew, I thought you wanted to open a complete can of worms there!

  8. #8
    Registered User
    Join Date
    Mar 2005
    Posts
    1,534
    Quote Originally Posted by NooNoo View Post
    Phew, I thought you wanted to open a complete can of worms there!

    LOL. No I run a tight ship. I have been asked to strange things but it's not worth it to me.

  9. #9
    Registered User
    Join Date
    Mar 2005
    Posts
    1,534
    Quote Originally Posted by CeeBee View Post
    Add a print link calling a javascript:
    Code:
    <a href="javascript:window.print()">Print the page</a>
    Of course your imagination can put it as a button or as a script called upon page being loaded...
    I will give it a go.

  10. #10
    Driver Terrier NooNoo's Avatar
    Join Date
    Dec 2000
    Location
    UK
    Posts
    31,824
    That code is about the only way to do it. If you have no jscript, then you have a printable page button which opens the image in its own page for the user to press the print page button.

    Also dreamweaver article here

  11. #11
    Registered User
    Join Date
    Mar 2005
    Posts
    1,534
    I used the code and it makes it print but it prints the whole page. I will look into what your talking about NooNoo.

  12. #12
    Driver Terrier NooNoo's Avatar
    Join Date
    Dec 2000
    Location
    UK
    Posts
    31,824
    There are page breaks and stuff you can do about that... read the dreamweaver article.

  13. #13
    Registered User CeeBee's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    2,494
    Look at @media for CSS.
    http://www.w3.org/TR/CSS2/media.html
    You'll want to create a CSS for print layout...

  14. #14
    Registered User
    Join Date
    Mar 2005
    Posts
    1,534
    I'll have to fool around with this one a bit on my spare time. Thanks for the input.

Similar Threads

  1. Where - Newbie Windows XP training? - printable
    By jakkwb in forum Tech-To-Tech
    Replies: 3
    Last Post: April 11th, 2005, 02:43 PM
  2. $750 Coupon From Dell Computers
    By esnetsc in forum Hot Hot Deals
    Replies: 1
    Last Post: October 19th, 2004, 04:32 PM

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
  •