Description
An AmlImage element is used to add an image to most AML presentation elements.
Element Body
((AmlContainer)*, AmlStyle?)
Parent
AmlPage, AmlOption, AmlForm, AmlTableCol, AmlTableHead, AmlInput, AmlLink, AmlControlMenu, AmlTextArea, AmlCheckBox, AmlGroup, AmlListItem
Restrictions
None
AML Attributes
Attribute |
Description |
Possible values |
Default |
Req’d? |
---|---|---|---|---|
src |
Set src of image |
CDATA |
No Default |
Yes |
alt |
Set alt text of image |
CDATA |
No Default |
Yes |
align |
Set alignment of the image |
(top|middle|bottom|left|right) |
bottom |
No |
height |
Set height of image |
CDATA |
No Default |
No |
width |
Set width of image |
CDATA |
No Default |
No |
vspace |
Set vspace of image |
CDATA |
No Default |
No |
hspace |
Set hspace of image |
CDATA |
No Default |
No |
persist |
Set persist flag |
(true|false) |
false |
No |
Markup Language Examples
Sample AML Input:
<AmlDocument bold="true" title="Company Document"> <AmlPage title="Login " bold="true"> <AmlImage src="Logo" alt="Company Logo"/> <AmlForm> <AmlURL action="Validate"/> <AmlText bold="true" text="User"/> <AmlInput name="user"/> <AmlText bold="true" text="PIN"/> <AmlInput name="pin"/> </AmlForm> </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">Login </p> <p> <img alt="Company Logo" src="Logo" align="bottom"/> </p> <p> <b>User</b> <input emptyok="true" name="user"/> <b>PIN</b> <input emptyok="true" name="pin"/> </p> <do label="submit" type="accept"> <go href="Validate?user=$(user)&pin=$(pin)" sendreferer="true" method="get"/> </do> </card> </wml>
Sample cHTML Output:
<html> <head> <title>Company Document</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>Login </b> </a> </div> <img alt="Company Logo" src="Logo" align="bottom"> <form enctype="application/x-www-form-urlencoded" action="Validate" method="get"> <b>User</b> <input name="user"></input> <b>PIN</b> <input name="pin"></input><br> <input name="request" type="submit" value="Submit"></input> </form> </body> </html>