filsa.net: Frontier / Scripts / Pageheader Macros / Yet Another PageHeader
This is part of Phil's Script Archive

UPDATED: Ready for Frontier 5!

Yet Another PageHeader

An update to the standard pageheader macro.


This fat web page contains the pageheader script object.

Use the 'Get Page Data' command from the Scripts menu to copy pageheader into your object database.

Also available: info about fat pages and the Terms under which you can use this script.

This is Yet Another Pageheader macro. (YAP)

It adds three bits of functionality to the standard pageheader:

  1. Better support for Javascript
  2. Add base tag support
  3. Allows you to turn off the body tag, for frames.

Installing this macro won't break anything. Use it wisely and without worry.

Javascript

#javascript works as usual.

However, if #javascript is set to the empty string ("") or to "null", nothing is inserted into the page.

If #javascript contains an address, YAP will insert the text found at that address. This allow you to use the #javascript directive in-line at the top of your pages, rather than in the website table.

Frames: Turning off the body tag.

In a frameset in HTML 3.2, a body tag surrounding a frameset is illegal.

The #includeBodyTag lets you set this. Set it to false!

The base tag

This is important for frames as well, but lots of people don't use it. More docs at Base Tag. If you don't use it, it's okay.

One note

I made this in response to questions on Frontier-Newbies. This pageheader () macro, in my opinion, a temporary work around for beginners. Advanced users will want to use the other scripts in this section, along with the #pageheader directive/template.

Just install, follow the directions, and go!

Cheers

Wed, Mar 18, 1998 at 10:39:03 PM by PS

View the Source: user.html.macros.pageheader


© copyright 1997-98 by Philip Suh. Comments are appreciated.
This page last updated on 3/18/98; 10:40:46 PM.
<http://www.filsa.net/frontier/scripts/PageheaderMacros/yapageheader.html>
filsa.net: Frontier / Scripts / Pageheader Macros / Yet Another PageHeader