Page 85 - DCAP512_WAP_AND_WML
P. 85
Unit 6: Card Navigation
If the type attribute value is prev, the <do> element is associated to a user interface element that Notes
enables users to navigate backwards. The PREV element is usually the “Back” softkey or physical
button of a wireless device. The table below gives some descriptions of how PREV elements are
presented on some mobile phone emulators:
Mobile phone emulators Descriptions of the PREV element
Nokia Mobile Browser 4.0 The first PREV element becomes the right softkey.
If there are two or more than two PREV elements, you can see the
second to the nth PREV elements if you press the Options softkey
on the left, where n is the total number of PREV elements.
Openwave Mobile Browser 6.2.2 The first PREV element becomes the Back button.
If there are two PREV elements, the second one becomes the right
softkey.
If there are more than two PREV elements, the right softkey will
be labeled as Menu. You can see the second to the nth PREV
elements if you press the Menu softkey, where n is the total
number of PREV elements.
Sony Ericsson T610 mobile phone If you press the More softkey on the right, the options menu is
opened and you can see all the PREV elements there.
Sony Ericsson T68i mobile phone If you press the "Options menu" button (located between the Yes
button and the 1 button), the options menu is opened and you can
see all the PREV elements there.
Task The PREV element is usually the “Back” softkey or physical button of a wireless
device. Analyze.
6.4.1 Back Button
Backward Navigation
The right softkey of the 7110 can only be used as a back button, and is labeled as such. By default,
it has no action at all. Some sub-versions of the 7110 allow reprogramming of the back key with
<do type=”prev”>. Unfortunately, this is not the case with all phones. The way to get the phone
to do what you want is:
<card id=”mycard” onenterforward=”#nextcard”
onenterbackward=”http://logical_back”>
Unfortunately, this has the side effect of spoiling the history stack.
Never provide a label for the <do type=”prev”> element. The 7110 will remove the Back label
from the right softkey, and instead create a new entry in the menu accessed through the left
softkey. This confuses users who expect to find the back key in a well-known position.
Guidelines for UP.Browser
The Phone.com browser has a different interface from the Nokia 7110. The general idea behind
the UP.Browser is that a <do> element is mapped directly to a softkey whenever possible.
LOVELY PROFESSIONAL UNIVERSITY 79