Page 122 - DCAP512_WAP_AND_WML
P. 122
WAP & WML Sarabjit Kumar, Lovely Professional University
Notes Unit 9: Working with user Input
CONTENTS
Objectives
Introduction
9.1 Using Variables
9.2 Free form Input with <input>
9.3 Select and Option
9.3.1 Restricted Input with Select
9.3.2 The <option> Element
9.3.3 Option Groups
9.4 Selection on the Nokia
9.4.1 Selection on the Phone.com
9.5 Delivering Data to Applications
9.6 Summary
9.7 Keywords
9.8 Review Questions
9.9 Further Readings
Objectives
After studying this unit, you will be able to:
Describe variables
Demonstrate free form input with <input>
Recognize restricted input with <select>
Explain delivering data to applications
Introduction
This unit will familiarize you with what option menus are, how selections are done on the
Nokia WAP toolkit 1.2 and on Phone.com UP SDK. You will learn what events are and how they
are bound to tasks. Also it will familiarize you with the various WML tags such as the input tag
which enables information to be collected from users in the form of text fields, the select element
which gives a range of choices to the users to select from and the option group contains a list of
options that relate to the group, etc.
9.1 Using Variables
A variable is a named location in memory where data can be stored.
A variable consists of a name-value pair.
116 LOVELY PROFESSIONAL UNIVERSITY