Solved

Print Screen and mail

Posted on 2014-09-09
3
144 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to dynamically set the form action using jQuery.

680 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