Companion Web site for

WAP -- The Wireless Application Protocol

Writing Applications for the Mobile Internet

Online Code Listings:  Chapter 9

For each set of examples, the driver is a WML deck which invokes the corresponding WMLScript function. Except for Listing 2, the drivers are not shown in the text.

  • Listing09-01-CheckDate.wmls
  • Listing09-02-CheckDate.wml (driver for above)
  • Listing09-03-AddTen.wmls and Driver
  • Listing 09-04 is omitted as it cannot be run by itself
  • Listing09-05-Vars.wmls and Driver
  • Listing09-06-While.wmls and Driver
  • Listing09-07-For.wmls and Driver
  • Listing09-08-Loop.wmls and Driver
  • Listing09-09-Function.wmls and Driver
  • Listing09-10 debugging skeleton
  • Listing09-11 debugging skeleton
  • Other Examples

    These decks show many of the code fragments which appear in the text but lack listing numbers.

  • Aritmetic operator (p. 324) and Driver
  • Relational and Logical operators (p. 325-6) and Driver
  • Increment and Decrement operators (p. 326) and Driver
  • Bitwise operators (p. 327) and Driver
  • Comma operator (p. 328) and Driver
  • Conditional operator (p. 328) and Driver
  • Typeof operator (p. 328) and Driver
  • Isvalid operator (p. 329) and Driver
  • If-else statements (p. 331) and Driver
  • Url pragma driver (p. 336-7)
  • inline-useurl1.wml (for above)
  • inline-useurl2.wml (for above)
  • Access pragma driver (p. 338)
  • inline-access1.wmls (for above)
  • inline-access2.wmls (for above)
  • inline-access3.wmls (for above)
  • Meta pragma (p. 339) and Driver
  • Lang library examples (p. 340+): Set 1, Set 2 and Driver
  • Float library examples (p. 347+) and Driver
  • String library examples (p. 349+): Set 1, Set 2, Set 3, Set 4 and Driver
  • URL library examples (p. 358+): Set 1, Set 2 and Driver
  • WMLBrowser library examples (p. 364+) and Driver
  • Dialogs library examples (p. 368+) and Driver
  • WTAI library examples (p. 373+) and Driver
  • Other Applications

    These programs are referenced in the book or are helpful additional applications but do not appear in the text. The overflow/underflow tests exercise compile-time and run-time floating point exceptions. The automatic conversion tests exercise the automatic conversions.

  • CodeBreaker application (p. 307)
  • Floating point overflow/underflow tests (p. 313): Set 1, Set 2, Set 3, Set 4 and Driver
  • Automatic conversion tests (p. 316+) and Driver

  • Return to online code listings
    Return to companion Web site.
    Return to book home page