Print form - problem help for client

Hello all,
I have form for print. I have problem:
In the print preview is displayed too Help. I do not know how to remove this help during printing.
Help for client is done using … Help me, how to remove this help message from the press.
Thanks to all for your help!!!

[php]

[/php]

willH, Not sure what you are asking…

Do you mean that you have are calling a JQuery function and want to conditionally not call the popup if an
option is set? Where do you set that option? If so, you would just use a normal IF clause. Loosely it is
something like this…

  function PrintElem(elem)  {
      if (somevariable="somevalue")  { 
          Popup($(elem).html());
      } else {
          ...  Do other code instead...
      }
 }

This is similar to PHP code. You did not mention how you tell the difference between printing and popup to
the user. So, not really sure what your question is. Hopefully, this will help…

Hi Ernie,
this javascript is a fully functional. The problem is that is printed completely whole html code.
The Help is done using " a href " and a tooltip. This the Help is printed also.
I need to write in “javascript” that with TOOLTIP not printed.
Ernie, I hope you understand what he I meant.
Thank you very much in advance for your help

Is the problem that you have some tooltip elements that are printed?
If not then I’d suggest a picture to illustrate the problem.

[hr]

If it is then just hide them with CSS, either include a “print.css” file, or you can use a media query to only affect media type “print”.

@media print { .tooltip { display: none !important; } }

Note that the rule above is probably not going to work, you need a selector targeting the actual tooltip itself. This one is (at least) targeting the link opening the tooltip.

Děkuji, ale nepomohlo to.
Will explain more this problem:
When you click on the Print, so print preview is displayed. The preview shows also the Help created using TOOLTIP. I need to make this a tooltip does not appear in print form. It then is not the form, but completely crap.

Sorry for the spelling, I am not an Englishman and currently still I can not to write well in English.
Thank you for understanding

I attach javascript for printing and also html:

[php]

[/php]

[php]

[/php]

If you know another script for printing, which would be more appropriate, so I would used the.

willH, No problem with language issues here. I noticed you are Czech from your first line of the last post.
Glad to have you here on the site…

Now, there are two ways to fix this. First, JimL gave you one way. You write a CSS line out to the page you
are going to print. It is commented out. You would have to remove the comments and then set up the
stylesheet with JimL’s code. Then, it should not print the pop-up.

You should be able to do it in that line. Replace the line #14 with something like this:
[php]
mywindow.document.write(’@media print { .tooltip { display: none !important; } }’);
[/php]
This would just add the CSS that JimL gave you into the pop-up page. But, it does assume that the tooltip
is set up in a standard manner. The second way to do this would be to close the tooltip before you run the
pop-up code. This could be done in Javascript. You would have to force the tooltip to be closed before you
opent the pop-up window. Either way would work well…

Sponsor our Newsletter | Privacy Policy | Terms of Service