• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 219 pages
Exam (elaborations)

MC unit1 - Mobile Computing Unit 1

Document preview thumbnail
Preview 4 out of 219 pages

MC unit1 - Mobile Computing Unit 1

Content preview

10/10/23, 9:46 AM MC unit1 - Mobile Computing Unit 1




right-click on the paperclip to open the examples file…




Learning WML & WMLScript




Martin Frost



First Edition, October 2000



ISBN: 1-56592-947-0, 200 pages




The next generation of mobile communicators is here, and delivering content will mean


about:blank 1/219

,10/10/23, 9:46 AM MC unit1 - Mobile Computing Unit 1




Learning WML & WMLScript




Martin Frost



First Edition, October 2000



ISBN: 1-56592-947-0, 200 pages




The next generation of mobile communicators is here, and delivering content will mean
programming in WML and WMLScript.


Learning WML & WMLScript gets developers up to speed quickly on these technologies, mapping
out in detail the Wireless Application Development (WAE), and its two major components:
Wireless Markup Language (WML), and WMLScript.


With these two technologies, developers can format information in almost all applications for
display by mobile devices




Preface 1
The WAP Stack
From Server to Client
This Book
Conventions Used in This Book
Comments and Questions
Acknowledgments

1 Introduction to WML 6
1.1 A Complete Example
1.2 Cards
1.3 Empty-Element Tags
1.4 Elements
1.5 Attributes
1.6 Entities
1.7 Comments

2 WML Variables and Contexts 12
2.1 Variable Substitution
2.2 Setting Variables
2.3 Browser Contexts

3 WML Tasks and Events 17
3.1 Tasks
3.2 Events

4 WML User Interaction 24
41 Problems with Web Interaction

about:blank 2/219

,10/10/23, 9:46 AM MC unit1 - Mobile Computing Unit 1




Preface 1
The WAP Stack
From Server to Client
This Book
Conventions Used in This Book
Comments and Questions
Acknowledgments

1 Introduction to WML 6
1.1 A Complete Example
1.2 Cards
1.3 Empty-Element Tags
1.4 Elements
1.5 Attributes
1.6 Entities
1.7 Comments

2 WML Variables and Contexts 12
2.1 Variable Substitution
2.2 Setting Variables
2.3 Browser Contexts

3 WML Tasks and Events 17
3.1 Tasks
3.2 Events

4 WML User Interaction 24
4.1 Problems with Web Interaction
4.2 Interaction in WAP
4.3 The <input> Element
4.4 The <select> Element
4.5 The <option> Element
4.6 The <optgroup> Element
4.7 The <do> Element
4.8 The <anchor> Element
4.9 The <a> Element
4.10 The tabindex Attribute

5 WML Timers 36
5.1 Using Timers with WML
5.2 The <timer> Element

6 WML Decks, Templates, and Cards 40
6.1 The <wml> Element
6.2 The <head> Element
6.3 The <access> Element
6.4 The <meta> Element
6.5 The <card> Element
6.6 The <template> Element

7 WML Text and Text Formatting 45
7.1 The <p> Element
7.2 The <br> Element
7.3 Character Formatting
7.4 Tables

8 WML Images 52
8.1 The <img> Element
8.2 The WBMP Image Format

9 Introduction to WMLScript 54
9.1 WMLScript with WML
9.2 What Is WMLScript?

10 WMLScript Datatypes, Variables, and Conversions 57
10.1 Datatypes and Literals
10.2 Variables
10.3 Type Conversion




11 WMLScript Operators and Expressions 63
11.1 Operand Conversions
11.2 Assignment Operators
11.3 Arithmetic Operators
11.4 Bitwise Operators
11.5 Shift Operators
11.6 Logical Operators
11.7 Increment and Decrement Operators
11.8 Comparison Operators
11.9 Type Operators
11.10 The Conditional Operator
11.11 The Comma Operator
11.12 Precedence and Associativity

12 WMLScript Statements 74
12.1 Expressions as Statements
12.2 Blocks of Statements
12.3 Conditions
12.4 Loops
12.5 Returning from a Function
12.6 Other Statements

13 WMLScript Functions 78
13.1 Function Declarations
13.2 Function Calls
13.3 Calls to Other Script Units
13.4 Calling WMLScript from WML
13.5 Standard Libraries

14 WMLScript Pragmas 83


about:blank 3/219

, 10/10/23, 9:46 AM MC unit1 - Mobile Computing Unit 1
10.1 Datatypes and Literals
10.2 Variables
10.3 Type Conversion




11 WMLScript Operators and Expressions 63
11.1 Operand Conversions
11.2 Assignment Operators
11.3 Arithmetic Operators
11.4 Bitwise Operators
11.5 Shift Operators
11.6 Logical Operators
11.7 Increment and Decrement Operators
11.8 Comparison Operators
11.9 Type Operators
11.10 The Conditional Operator
11.11 The Comma Operator
11.12 Precedence and Associativity

12 WMLScript Statements 74
12.1 Expressions as Statements
12.2 Blocks of Statements
12.3 Conditions
12.4 Loops
12.5 Returning from a Function
12.6 Other Statements

13 WMLScript Functions 78
13.1 Function Declarations
13.2 Function Calls
13.3 Calls to Other Script Units
13.4 Calling WMLScript from WML
13.5 Standard Libraries

14 WMLScript Pragmas 83
14.1 The access Pragma
14.2 The meta Pragma

15 The Lang Library 85
abort
abs
characterSet
exit
float
isFloat
isInt
max
maxInt
min
minInt
parseFloat
parseInt
random
seed

16 The Float Library 95
ceil
floor
int
maxFloat
minFloat
pow
round
sqrt




17 The String Library 102
charAt
compare
elementAt
elements
find
format
insertAt
isEmpty
length
removeAt
replace
replaceAt
squeeze
subString
toString
trim

18 The URL Library 119
escapeString
getBase
getFragment
getHost
getParameters
getPath
getPort
getQuery
getReferer
getScheme
isValid


about:blank 4/219

Document information

Uploaded on
October 10, 2023
Number of pages
219
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$39.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
johngatheca
2.5
(2)
Sold
21
Followers
25
Items
729
Last sold
1 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions