Class FWPage

This class represents a page within the Freeway Document.

Properties (14)

fwAlignment

This is the alignment of the page. left = 1, center =2, right = 3 Integer

fwAlinkColor

This returns the active link color that has been set on the page. FWColor

fwBgColor

This returns the background color that has been set on the page. FWColor

fwEncoding

This returns the Internet name encoding that has been set on a page (eg. “ISO-8859-1”). String

fwFileName

This is the file name of the page. String

fwHeight

This is the height of the page within Freeway. Integer

fwHTMLDocType

Returns a string containing the page’s doctype. String

Example:
The following code fragment returns the doctype for the page the action is running on.

// get the doctype for the page 
var pageDocType = fwPage.fwHTMLDocType;
>> HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"

fwHTMLLevel

This is the HTML level that will be generated from this page (HTML 3.2 = 1, HTML3.2+CSS = 2, HTML4 = 3, xhtml transitional=4, xhtml strict=5).

Note: the return value of this is incorrect in Freeway 3 but is corrected in Freeway 3.1

fwLinkColor

This returns the link color that has been set on the page. FWColor

fwScript

This returns the script code of a page. (See Tech Note: “Localizing Freeway Actions”)

Example:
The following code fragment behaves differently if the page has a script- code of “1” i.e. is Japanese. It returns the encoding that has been set on a page.

// if we are on a Japanese page then add Japan in Japanese 
if (fwPage.fwScript==1) 
    addOption(tag, "日本"); 
else 
    addOption(tag, "Japan"); 

fwSystemMetaTags

This returns a list of system meta tags on the page.FWListData

fwUserMetaTags

This returns a list of user meta tags on the page.FWListData

fwVlinkColor

This returns the visited link color (FWColor) that has been set on the page. FWColor

fwWidth

This is the width of the page. Integer


Register or log in to view or add comments.

FreewayCast

Learn by watching! Screencasts show you how to do it in Freeway. Visit FreewayCast today!