Comments on: JQuery for Everyone: Print (Any) Web Part(s) Plugin http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/ No GeekSpeak on SharePoint 2007 WSS and MOSS Mon, 27 Dec 2010 14:28:49 -0500 http://wordpress.org/?v=2.8.6 hourly 1 By: AutoSponge http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-48317 AutoSponge Mon, 22 Mar 2010 15:48:07 +0000 http://www.endusersharepoint.com/?p=1486#comment-48317 @Sam, Thanks for your suggestion. However, your script does not preserve the CSS/style used on the area being printed. You also neglected to mention that your version does not work in SharePoint because there is no element with id=print. I'll also add, that part of this script's utility is that it does not clog the global namespace with a generic name like yours, it extends jQuery instead--which followers of this article are already using for many other solutions. I'll admit, I wrote this a long time ago, and probably would write better version today, but when I offered this, I tested it in multiple browsers in SharePoint--your code is just a copy-paste example from somewhere else. @Sam,

Thanks for your suggestion. However, your script does not preserve the CSS/style used on the area being printed. You also neglected to mention that your version does not work in SharePoint because there is no element with id=print. I’ll also add, that part of this script’s utility is that it does not clog the global namespace with a generic name like yours, it extends jQuery instead–which followers of this article are already using for many other solutions.

I’ll admit, I wrote this a long time ago, and probably would write better version today, but when I offered this, I tested it in multiple browsers in SharePoint–your code is just a copy-paste example from somewhere else.

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-48311 EndUserSharePoint Mon, 22 Mar 2010 14:14:28 +0000 http://www.endusersharepoint.com/?p=1486#comment-48311 Thanks Sam. I'm in agreement that some of the things I'm seeing can be done with a simple javascript function as opposed to making a call to jQuery. Specifically, some of the interface enhancements available could just as easily be one with plain CSS in a CEWP. -- Mark Thanks Sam. I’m in agreement that some of the things I’m seeing can be done with a simple javascript function as opposed to making a call to jQuery. Specifically, some of the interface enhancements available could just as easily be one with plain CSS in a CEWP. — Mark

]]>
By: Sam http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-48301 Sam Mon, 22 Mar 2010 11:24:15 +0000 http://www.endusersharepoint.com/?p=1486#comment-48301 Here is a simpler version of this code. It not jquery, but to be honest theres hardly a need for jquery on small functions like these.. <code> function print() { var a = window.open('', '', 'scrollbars=yes,width=850,height=650'); a.document.open("text/html"); a.document.write(''); a.document.write(document.getElementById('print').innerHTML); a.document.write(''); a.document.close(); a.print(); } </code> Here is a simpler version of this code.

It not jquery, but to be honest theres hardly a need for jquery on small functions like these..

function print() {
var a = window.open('', '', 'scrollbars=yes,width=850,height=650');
a.document.open("text/html");
a.document.write('');
a.document.write(document.getElementById('print').innerHTML);
a.document.write('');
a.document.close();
a.print();
}

]]>
By: AVIKA http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-41401 AVIKA Fri, 05 Mar 2010 03:59:39 +0000 http://www.endusersharepoint.com/?p=1486#comment-41401 If I have 1000+ items, will it print page by page or you can all the pages? If I have 1000+ items, will it print page by page or you can all the pages?

]]>
By: Charlie Epes http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-41134 Charlie Epes Thu, 04 Mar 2010 15:33:54 +0000 http://www.endusersharepoint.com/?p=1486#comment-41134 Hi Paul: Would you give us some help on how to install and utilize this plug-in? Thanks- Charlie Epes Hi Paul:
Would you give us some help on how to install and utilize this plug-in?

Thanks-

Charlie Epes

]]>
By: JQuery for Everyone: Minimal AOP and Elegant Modularity | EndUserSharePoint.com http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-21065 JQuery for Everyone: Minimal AOP and Elegant Modularity | EndUserSharePoint.com Wed, 16 Dec 2009 18:57:55 +0000 http://www.endusersharepoint.com/?p=1486#comment-21065 [...] two basic options for creating “plugins” (extensions of the jQuery library). Like my Print Any Web Parts code, you can create a jQuery method by using jQuery.prototype. or the pseudonym, [...] [...] two basic options for creating “plugins” (extensions of the jQuery library). Like my Print Any Web Parts code, you can create a jQuery method by using jQuery.prototype. or the pseudonym, [...]

]]>
By: Pearl Tech » Blog Archive » Printer Friendly jQuery http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-17389 Pearl Tech » Blog Archive » Printer Friendly jQuery Wed, 23 Sep 2009 13:39:59 +0000 http://www.endusersharepoint.com/?p=1486#comment-17389 [...] friendly web content is another hurdle for application developers. I recently came across some useful jQuery for printing Sharepoint web parts. The idea was pure genius – wrap the bit of HTML you want [...] [...] friendly web content is another hurdle for application developers. I recently came across some useful jQuery for printing Sharepoint web parts. The idea was pure genius – wrap the bit of HTML you want [...]

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-13245 AutoSponge Thu, 28 May 2009 22:30:29 +0000 http://www.endusersharepoint.com/?p=1486#comment-13245 @Frank, 1. I'm guessing that the calendar will print to a single page if you can adjust your print settings. If not, you're allowed to pass custom CSS instructions in the call to $.print(). See the example in this article. 2. Check the versions of jQuery you're using. If you're mashing up web parts, make sure you use the same version everywhere. As for making specific code work together, I can only speak for my own creations and I never tested this with LoadTip Live. @Frank,

1. I’m guessing that the calendar will print to a single page if you can adjust your print settings. If not, you’re allowed to pass custom CSS instructions in the call to $.print(). See the example in this article.

2. Check the versions of jQuery you’re using. If you’re mashing up web parts, make sure you use the same version everywhere.

As for making specific code work together, I can only speak for my own creations and I never tested this with LoadTip Live.

]]>
By: Frank http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-13175 Frank Wed, 27 May 2009 16:17:13 +0000 http://www.endusersharepoint.com/?p=1486#comment-13175 I added the code to my test site and it works. I have a few problems. 1. How do I get the calendar to print on one page? 2. How do I get it to work with other web parts? Here are some examples: (Hidden) Cross-Site Menu, (Hidden) LoadTip Live and other 'great stuff' I got from EndUsersSharePoint. I add it to the site and only the print code works. Hope you can help. I added the code to my test site and it works. I have a few problems.
1. How do I get the calendar to print on one page?
2. How do I get it to work with other web parts? Here are some examples: (Hidden) Cross-Site Menu, (Hidden) LoadTip Live and other ‘great stuff’ I got from EndUsersSharePoint.
I add it to the site and only the print code works.
Hope you can help.

]]>
By: flume http://www.endusersharepoint.com/2009/04/06/jquery-for-everyone-print-any-web-parts-plugin/comment-page-1/#comment-12761 flume Tue, 12 May 2009 08:57:11 +0000 http://www.endusersharepoint.com/?p=1486#comment-12761 I agree with Mike. Would be nice with a simple example... I agree with Mike. Would be nice with a simple example…

]]>