Description
An AmlSelectList contains AmlLink elements in AmlSelectListItems instead of AmlText elements in AmlListItems. AmlSelectLists are used to offer multiple options for transfers to URLs.
Element Body
(AmlContainer*, (AmlText | AmlImage)?, AmlStyle?)
Parent
AmlPage
Restrictions
None
AML Attributes
Attribute |
Description |
Possible values |
Default |
Req’d? |
---|---|---|---|---|
wml_select_label |
Set select label |
CDATA |
ok |
No |
cache |
Set caching |
(true|false) |
true |
No |
persist |
Set persist flag |
(true|false) |
false |
No |
Markup Language Examples
Sample AML Input:
<AmlDocument bold="true" title="Welcome"> <AmlPage title="Chooser" bold="true"> <AmlSelectList> <AmlSelectListItem> <AmlLink url="Running" text="Running"/> </AmlSelectListItem> <AmlSelectListItem> <AmlLink url="Jumping" text="Jumping"/> </AmlSelectListItem> <AmlSelectListItem> <AmlLink url= "Skipping" text="Skipping"/> </AmlSelectListItem> </AmlSelectList> </AmlPage> </AmlDocument>
Sample WML Output:
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <head> <meta http-equiv="Cache-Control" content="max-age=0"/> </head> <card id="agp0"> <p align="center">Chooser</p> <p> <select> <option onpick="Running">Running</option> <option onpick="Jumping">Jumping</option> <option onpick="Skipping">Skipping</option> </select> </p> </card> </wml>
Sample cHTML Output:
<html> <head> <title>Welcome</title> <meta name="PalmComputingPlatform" content="true"></meta> <meta http-equiv="Pragma" content="no-cache"></meta> <meta http-equiv="Cache-Control" content="no-cache"></meta> </head> <body> <div align="center"> <a name="agp0"> <b>Chooser</b> </a> </div> <a href="Running">Running</a><br> <a href="Jumping">Jumping</a><br> <a href="Skipping">Skipping</a><br> </body> </html>