Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery -Print Dialog Area :: Is exist plugin for printing jquery dialog content?

I don't know well jquery ui. Is exist plugin for printing jquery dialog content/some code (Only print dialog content and not all webpage)

Thanks

like image 353
Ben Avatar asked Dec 22 '22 02:12

Ben


1 Answers

You can use the jqPrint plugin for this, and you can try a demo here.

Usage is pretty simple:

$("#dialog").jqprint();

This opens the print dialog and you're all set. In case you're wondering about the internals, you can see the script here, it makes an <iframe>, copies your content over and triggers a print on it. This isn't jQuery UI specific at all, just use the same selector as you use to define the dialog (or another, whatever you want to print!) and that's it.

like image 71
Nick Craver Avatar answered Dec 26 '22 22:12

Nick Craver