spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column89


Print Templates, Part I

Developer News
Google Going Native With Chrome
Mozilla Fixes Firefox Flaws as 3.5 Release Nears
Microsoft and Novell Still Bosom Buddies

In this column we introduce the subject of print templates. Print templates first appeared in Internet Explorer 5.5, and were later improved in Internet Explorer 6. We'll first show you what the benefits of print templates are and why they are so important. Then, we'll guide you through the development of two identical print templates. One is statically created by assembling a fixed number of pages in which the source is rendered. The other variation is more sophisticated in that it supports any number of pages, because page containers are created on the fly, until the source document is exhausted.

Print templates rely heavily on DHTML behaviors, first introduced by Internet Explorer 5. We'll help you to refresh your knowledge on this subject. Print templates are based on four behaviors: DeviceRect, LayoutRect, HeaderFooter, and TemplatePrinter. In this column we'll touch upon two of these four: LayoutRect and DeviceRect. We'll discuss the other two in a future column. We'll also show you in this column how to use the onLayoutComplete event and the event property contentOverflow.

In this column you will learn:

You can also see the full code listing of the static print template, as well as the dynamic print template, or load them from the enclosed zipped file.

Next: How to create print templates with behaviors

More Resources from Doc JavaScript
Columns Popular Columns Tips Tools
Latest Columns
41-50 | 31-40 | 21-30
11-20 | 1-10
Working with Windows
JavaScript and Frames
Bookmarklets
Random Tips
Personalized Tips
RSS Channels
Menu Builder
Rollover Builder
Rotation Builder
Reference Tip Categories (want one?)
Links
For Your Site
Did you learn something? Do you like this site? Please link to us!

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
XML and PHP Simplified · Creating a ASP.NET Contact Form · Data Filtering with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Intel to Host Live Nehalem Q&A · 12 Tips to Troubleshoot Network File-Sharing · 10 Tips for Selling on Kijiji


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: July 30, 2001
Revised: July 30, 2001

URL: http://www.webreference.com/js/column89/index.html