Print Popup Interfering with Main Document

Asked

Viewed 49 times

0

I am using a plugin to make certain page print.

Is the jQueryPrintElement.js. http://projects.erikzaadi.com/jQueryPlugins/jQuery.printElement/

When I click the print button, it opens the popup (from Chrome, for example) to click on print. As if CTRL + P.

But if I click cancel the print, it goes back to my screen, but it changes the style of some elements of the page! I see this by Inspect Element. I did the test, opened the popup, clicked cancel and changed the page.

How does this happen ?

  • 2

    It probably adds a class in the body or other element to look good in the print and then does not remove. But without seeing the code or an example of the live problem will be very difficult to help.

  • http://www.contosdatiasil.com.br/games/colorir. See Sergius. Click a drawing, click the print button, then cancel, then click the back button. You will see the drawing thumbnails... this happens after I click Print and Cancel.

  • 1

    There are some plugin that is doing these changes, now is to figure out which one... Can you recreate this problem in jsFiddle? If you’re not going to have to go 1-1 by electing the script and see when it stops. Start with the Caroussel plugin and print. If you make a jsFiddle you can help more.

  • These are exactly the ones, more specifically the ones that happen in Carousel of miniatures.

  • Why the negative in a question from 3 months ago ?

  • Hmm... I don’t think it’s a case of negativity, but different people think different. +1 to match :)

  • @Sergio, I don’t care about punctuation, what I found strange is the question is from 3 months ago. I think it was the Community user to pay attention to the question. Does this user ? Anyway, thank you. My grandmother is in Portugal at the moment.

  • The Community user does not vote negative alone. Nor is it possible to know who voted. Anyway, it is zeroed. You could open an "Issue" on github with the problem you describe and see if they help you and then put the solution :P here

  • I solved that question, but I didn’t post it here. b

  • haha, so it was your conscience that voted -1 to remind you to answer and share knowledge :) Say when you answer that I take a look at the answer.

  • Right. I will enter the code later and get the resolution. Rsrs

Show 6 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.