spacer
Yehuda Shiran September 26, 2001
Decoding Headers and Footers
Tips: September 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

The textHead and textFoot properties of the HeaderFooter element include text instructions on how to prepare the HTML for the header and the footer. The resulting HTML can be found in the htmlHead and htmlFoot properties of the HeaderFooter element. The formatting strings can also be retrieved from the header and footer properties of the TemplatePrinter element.

The formatting strings are based on eleven different codes, which specify the information to be printed. The codes can be combined with text (for example, "Page &p of &P"). All codes begin with an ampersand. Here are the eleven codes:

  • &w. Insert the window title from the title property of the HeaderFooter element.
  • &u. Insert the page address from the URL property.
  • &d. Insert the date in short format from the dateshort property.
  • &D. Insert the date in long format from the datelong property.
  • &t. Insert the time in short format from the timeshort property.
  • &T. Insert the time in 24-hour format from the timelong property.
  • &p. Insert the page number from the page property.
  • &P. Insert the total number of pages from the pageTotal property.
  • &b. Center the text following the &b.
  • &b&b. Right-align the text following the &b&b.
  • &&. A single amersand(&)

People who read this tip also read these tips:

Look for similar tips by subject:

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 >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint