spacer

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

home / experts / javascript / column89


Print Templates, Part I

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

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

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags


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