filsa.net: Frontier / Scripts / Linking Macros / Targeting Frames
This is part of Phil's Script Archive

UPDATED: Ready for Frontier 5!

Targeting Frames

A step towards making Frontier 'frames-friendly': automated targeting of <a> tags and glossary references


This fat web page contains the glossTarget script object.

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

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

Trying to develop the perfect frames system

I want to implement a framed website in Frontier, and I want it to be easy and seamless. This is a first step towards that goal.

It's called glossTarget

And it's a macro that goes into your user.html.macros table. Although it says 'gloss' in the name, it can target regular <a> tag strings as well as items in the Frontier glossary.

It requires a script called glossPatcher.

It has some cousins that do other work with glossary references, glossRename() and glossImageRef().

glossTarget (glossspec, targetName)

glossSpec is a string that is either a glossary reference, a [[#glossPatch string, or a <a> tag. If glossSpec is not found in the glossary, it is returned unprocessed, in quotes.

targetName is a string that is the name of the target window, or one of the four special target names. (_top, _blank, _parent, _self)

See the source below for more docs. You can copy the source into your database or use the fatPages mechanism to get the script from this page.

View the Source: user.html.macros.glossTarget


© copyright 1997-98 by Philip Suh. Comments are appreciated.
This page last updated on 7/21/98; 7:45:53 AM.
<http://www.filsa.net/frontier/scripts/LinkingMacros/glossTarget.html>
filsa.net: Frontier / Scripts / Linking Macros / Targeting Frames