Page 129 - DCAP512_WAP_AND_WML
P. 129
Unit 9: Working with user Input
The second item is selected because the variable var is still set to “item2” from the previous Notes
deck. Push the Up button to select the first item. Push the “Select” key. The variable var is set to
“item1”. Push the “OK” key.
The card is displayed again. Push the “Options” key.
Push the Down button and then the “Select” key.
Did u know? In how many ways you can set the value of a variable?
You can set the value of a variable in the following ways:
Using the <setvar/> tag
Using data collection tags <select> and <input/>
Using the setVar() function of WMLScript’s WMLBrowser standard library
Self Assessment
Fill in the blanks:
8. The ………………….. selection lists gives users a choice of several predetermined answers
in the forms of radio buttons or check boxes.
9. The ………………….. is similar to the ‘name’ attribute.
10. Push the Up button to select the ………………….. item. Push the “Select” key.
9.4 Selection on the Nokia
The WAP Toolkit 1.2 product from Nokia is similar in some respects to Ericsson’s WapIDE. Both
products contain graphical development environments (though neither one supports any type
LOVELY PROFESSIONAL UNIVERSITY 123