S
S
Sergey Alpeev2014-08-02 23:25:28
JavaScript
Sergey Alpeev, 2014-08-02 23:25:28

How to make a printable version in the news feed?

Hello, please tell me how to make a "Print version" button in a blog or news feed? I know the usual way, but how can I pass the url to this script and display the printable version of it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Lobanov, 2014-08-02
@QTnub

Apparently, you should do this:
1. When you click the Print button, send a request to the server and load the desired page into the block that is visible on the print, make the rest of the page invisible on the print.
2. Visibility and invisibility of blocks on the print is done using a media print.
3. Accordingly, after the page is loaded into the block, print directly.
The issue on the knee is not solved, and if you need to not just print the current page, but as I described above, then you will have to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question