Web & Design Blog
In: Nettuts
5 Apr 2009
I wrote this article because I needed to add a print and email function for a blog theme I was designing. Attempting to circumvent recreating the wheel, I looked around and didn’t find any proper solutions: I needed the code to be smart so I could have a certain element generate a print or email version of a page, while stripping the rest of the page. I ended up using jQuery to do this. Here is an excerpt from the tutorial:
“When designing websites, a commonly desired feature is the ability to dynamically print or email any section of a webpage. Unfortunately, this idea is usually scrapped later in the project due to a lack of time or knowledge. Formatting the text for printing is more difficult than it might initially seem. Today, we will use JavaScript to automatically search for certain page elements and format them correctly for a printing.”
Hi I'm Connor Zwick - freelance designer & student. I design web sites, do 3d modeling & animation, video animations, and other media work. This is my sandbox - a place to organize everything. If you'd like to hire me, or learn more about me, be sure to visit connorzwick.com.
My Portfolio
Niche Social Network
My Author Page