I open my JQplot on a modal Div window, which has a print button.
I want the print button to only print the graph.
Or possibly open a new window with a graph in it.
What do you think is the best route and how would that solution work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could call something like this thats inside of an onclick
I would not open a new window.
Just create an anchor tag with an onClick event. Inside the event hide everything you don’t want and then fire window.print(). Another way would be to create a print style sheet and hide everything you don’t want to show up in the print style sheet.
How does this print stylesheet work?