Solved

Print Screen and mail

Posted on 2014-09-09
3
139 Views
Last Modified: 2014-09-09
I'm working on a web page that uses http://jqueryui.com/draggable/ . A customer can input text or an image which shows up on the screen, then they can drag it to any position in order to design a product. Something similar to the many design your own t-shirts sites on the web.

I need to capture what they have designed on the web page and I think the javascript <A HREF="javascript:window.print()">Click to Print This Page</A> would work if.....

Is it possible to programmatically print a screen and have it mailed to me?
0
Comment
Question by:Gary Samuels
  • 2
3 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 40312264
check this jQuery plugin : http://www.jqueryscript.net/other/jQuery-Plugin-To-Print-Any-Part-Of-Your-Page-Print.html

else you can just create a dedicated stylesheet by setting media t print :  media="print"

<link href="path/to/styles.css" media="print" type="text/css" rel="stylesheet" />
0
 

Author Comment

by:Gary Samuels
ID: 40312537
How does adding a stylesheet assist in creating a print page, image or pdf and have it mailed to me?
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40312555
you cannot mail directly with javascript
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question