WML (Wireless Markup Language) - A Comprehensive Review, Slides of Fundamentals of E-Commerce

A detailed review of wml (wireless markup language), including its document structure, text and image controls, navigation controls, events, variables, and examples using wmlscript. It covers topics such as creating cards, loading images, using softkeys and links, timers, table layouts, input, and input as navigation.

Typology: Slides

2012/2013

Uploaded on 07/29/2013

satinder
satinder 🇮🇳

4.2

(21)

131 documents

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
WML II
WML
WMLScript
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download WML (Wireless Markup Language) - A Comprehensive Review and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

WML II WML WMLScript

WML - A Quick Review ^ Document structure^ ^ , ... ^ Text and image controls^ ^

..., ,

..., ^ Navigation controls^ ^ , , , ^ Events^ ^ onenterforward, onenterback, ontimer^ ^ ^ ^ ..., ... ^ Variables^ ^ , $(foo)

WML - Examples ^ Loading an image--

Hello world!

^ ^

WML - Examples ^ Using a softkey-- ^ ^

Hello world!

^

Hello world!

WML - Examples ^ Using a timer--

Hello world!

Hello world!

WML - Examples ^ Table layout--

^ Hello^ world!

^

WML - Input Revisited ^ The tag:^ ^ Use to record variable user input^ ^ name="

variable " :^ required  Can specify formatex: “NNNNN” maps to exactly five digits. “NNaaaa” maps totwo digits followed by four letters. The phone won’taccept anything else.  Can specify type=“password” for secure (ie hidden) entry  Can specify maxlength=“...” for the max number of charactersof data the user can enter  How the phone chooses to render the input box is up to thephone. Don’t depend on there being, say, a little black box.

WML - Input Revisited ^ The tag:^ ^ Use to limit user entry between several possible options^ ^ Can be used for links, as well^ ^ name="

variable ” is optional; can just use

onpick^ (below).

^ multiple=“true” or “false” : allow multiple selections.^ In the case of multiple selections, the values are stored as a semicolon-delimited list. ^ value=“...” : sets the default value of the tag’s variable  The ^ value=“...” determines the value that this option sets for thevariable named by the enclosing tag ^ onpick=“url” : when the user selects this option, links directlyto another card or page. ^ You can also catch “onpick” events from the tag.

WMLScript ^ WMLScript is similiar to JavaScript in function; itallows a more powerful and controllable degreeof scripting control than offered by simple WML. ^ WMLScript offers a decent range of string-manipulating and mathematical functions. ^ Each WMLScript file is full of

functions

. Each

function is either

local --used only within the file--

or^ external

--accessible from other WMLS and

WML files.^ ^ To declare a function

extern , put the word extern before its

declaration.