Description
An AmlLink is used to place active text or image links on an AmlPage, AmlTableCol, or AmlForm. The URL attribute is the URL of the destination.
Element Body
((AmlContainer*, (AmlText | AmlImage)?, AmlStyle?)
Parent
AmlPage, AmlForm, AmlTableCol, AmlGroup, AmlListItem, AmlSelectListItem
Restrictions
None
AML Attributes
Attribute |
Description |
Possible values |
Default |
Req’d? |
---|---|---|---|---|
url |
Set url for link. |
CDATA |
No Default |
Yes |
selected_color |
Set color of selected link |
CDATA |
No Default |
No |
italics |
Set italics for link text |
(true|false) |
false |
No |
bold |
Set bold for link text |
(true|false) |
false |
No |
underline |
Set underline for link text. |
(true|false) |
false |
No |
text |
Set text for link |
CDATA |
No Default |
No |
textsize |
Set text size for link |
(big|normal|small) |
normal |
No |
wml_select_label |
Set the label for submit for wml |
CDATA |
No Default |
No |
persist |
Set persist flag for link |
(true|false) |
false |
No |
Markup Language Examples
Sample AML Input:
<AmlDocument> <AmlPage title="Company Page" bold="true"> <AmlText bold="true" text="Welcome to Company"/> <AmlLink url="documents"> <AmlText text="Documents"/> </AmlLink> </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">Company Page</p> <p> <b>Welcome to Company</b> <a href="documents">Documents</a> </p> </card> </wml>
Sample cHTML Output:
<html> <head> <title></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>Company Page</b> </a> </div> <b>Welcome to Company</b> <a href="documents">Documents</a> </body> </html>