HAWHAW XML ReferenceVersion 1.1


<deck>


Down  Summary
Down  Attributes
Down  Examples
Down  See also

Summary
The <deck> element is nested inside the <hawhaw> element. Each HAWHAW XML file must contain exactly one <deck> element. The term "deck" comes from the WAP terminology. Using HAWHAW you can consider a deck as a small web page, which contains the content you have declared in the HAWHAW XML file.
A lot of attributes allow to control the appearance of the <deck> element on various browsers and devices.
The markup language and the HTTP response headers created by HAWHAW are depending from the detected browser/device. For WML browsers one deck with one card will be generated. For HDML browsers one deck including as much cards as necessary will be generated. HTML browsers will receive a normal HTML page. For AvantGo and i-mode browsers appropriate HTML code is created.
Do not overload HAWHAW decks because a lot of WAP clients can not handle more than about 1400 byte of compiled data.
 
Attributes
title (optional) - The title will be displayed in the HTML title bar, respectively somewhere on a WAP display. Using a title you will normally have to spend one of your few lines on your WAP display. Consider that some WAP phones/SDK's and handheld devices don't display the title at all!
align left (default) | center | right
The align attribute controls the alignment of the whole deck.
redirection (optional) - Causes redirection after specified seconds to another URL.
Redirection is not necessarily supported by all device. It is always a good idea to declare an additional link in case the automatic redirection does fail.
cache yes (default) | no
Disables deck caching in the users client.
Note: Use this attribute, if you intend to provide changing content under the same URL.
charset Sets a given charset (default: iso-8859-1)
background (optional) - Sets a wallpaper for HTML created pages. Has no effect on WML/handheld pages.
size (optional) - Sets the font size for all characters in a HTML created page. Has no effect on WML/handheld pages. See HTML specification for possible values (e.g. "4", "+2", ...).
color (optional) - Sets the color for all characters in a HTML created page. Has no effect on WML/handheld pages. See HTML specification for possible values (e.g. "#CCFFFF", "red", ...).
link_color (optional) - Sets the color of links in a HTML created page. Has no effect on WML/handheld pages. See HTML specification for possible values (e.g. "#CCFFFF", "red", ...).
vlink_color (optional) - Sets the color of visited links in a HTML created page. Has no effect on WML/handheld pages. See HTML specification for possible values (e.g. "#CCFFFF", "red", ...).
face (optional) - Sets the font for all characters in a HTML created page. Has no effect on WML/handheld pages. See HTML specification for possible values (e.g. "Avalon", "Wide Latin", ...).
waphome (optional) - Sets the URL of a WAP site, a HTML-browsing user is invited to enter wireless. Has no effect on WML/handheld created pages.
Note: Below the display of a HTML-created page, a small copyright link to the HAWHAW information page will be created automatically by HAWHAW. The information page in return invites the visitor to take a look via WAP at your hybrid page. Therefore by default your hostname and your refering script will be part of this copyright link. You can modify this value, e.g. if your application directs the user with get-method queries across different pages, but you want to make visible the entry page only.
 
Examples

<?xml version="1.0"?> <hawhaw> <deck title="Welcome!" align="center"> <text>Welcome to our new WAP site!</text> </deck> </hawhaw> ... <deck title="Intro" redirection="10; URL=http://wap.foo.com/menu.xml"> ... <deck title="News" cache="no"> ... <deck background="wall.gif" size="-1" color="green"> ... <deck title="Deck 4711" waphome="http://wap.foo.com/"> ...
 
See also
<hawhaw> <text> <img> <a> <linkset> <form> <hr> <phone> <table>
 
last update: 14.04.2002 - 23:10:53HAWHAW - Keep on laughing!