Genie 7110 Navigation Guidelines, Use up to 18 characters on option labels, Example, wml template

Models: 7110

1 84
Download 84 pages 46.18 Kb
Page 27
Image 27
■Use up to 18 characters on option labels.

Navigation Guidelines

3

Use up to 18 characters on option labels.

Since <do> labels are items under the Options softkey, labels can be approximately 18 characters long. Limit labels to one or two words.

Example 3-11

Nokia 7110 Browser

--------

Contacts

 

 

 

 

Options items:

Last name:

 

 

New Contact

 

 

[Smith]

 

 

 

 

Done
First name:

 

 

 

 

 

 

 

 

 

 

[Andrew]

 

 

 

 

Options

 

Back

 

 

City & State:

[San Diego, CA]

<do type="accept" label="New Contact"> <go href="newctct.wml"/>

</do>

In Example 3-11the menu item “New Contact” can replace New in applications searching a database of information because the label is displayed under the Options softkey.

Never define an action of go or noop to the prev task.

The Nokia browser will not activate the right softkey. The action will be accessible only under the Options softkey. To control how the application behaves when the <prev> action is invoked, use a “shadow” card that contains an

<onevent type="onenterbackward"> element.

Example 3-12

<wml>

<template>

<do type="prev" label="Back"> <prev/>

</do>

</template>

<card id="start" onenterforward="#start2" onenterbackward="backtome.wml">

</card>

<card id="start2" title="The Start">

Example 3-12works by defining a dummy card (id="start") that immediately transfers control to the real card (id="start2") and puts itself on the history stack. Entering the card from a backward direction triggers the onenterbackward, thus loading backtome.wml.

It is not necessary to define a label for a <do type="prev">.

The Nokia 7110 browser assigns the label Back to the right softkey and ignores the defined label.

February 2001

Genie Application Style Guide 23

Page 27
Image 27
Genie 7110 Navigation Guidelines, Use up to 18 characters on option labels, Example, onevent type=onenterbackward element