Presentation is loading. Please wait.

Presentation is loading. Please wait.

By Amisha Pardasani. Contents Introduction to Wireless Application Protocol Introduction to Wireless Markup Language WML Formatting Links and Images Input.

Similar presentations


Presentation on theme: "By Amisha Pardasani. Contents Introduction to Wireless Application Protocol Introduction to Wireless Markup Language WML Formatting Links and Images Input."— Presentation transcript:

1 By Amisha Pardasani

2 Contents Introduction to Wireless Application Protocol Introduction to Wireless Markup Language WML Formatting Links and Images Input Tasks Timer Forms Variables Entities Template Conclusion References

3 What is WAP

4 WAP Architechture

5 Does wireless internet really need a different protocol? Issues: Transfer speed Size and Readability Navigation

6 Summarizing WAP WAP is an application communication protocol WAP is used to access services and information WAP is inherited from internet standards WAP is for handheld devices WAP is a protocol designed for micro browsers WAP enables the creating of web applications for mobile devices WAP uses the markup language WML

7 Examples of WAP Checking train table information Ticket purchase Flight check in Viewing traffic information Checking weather conditions Looking up stock values Looking up addresses, phone numbers

8 What is WML? Wireless Markup Language based on XML Purpose: to specify user interface behavior and display contents on wireless devices such as (phones), pagers, (PDAs) WAP, WML WWW, HTML

9 Is WML lean and mean? WML is designed to support a range of devices which have the following characteristics: Small display size (relative to conventional personal computers) Limited memory and CPU size Low bandwidth Due to these reasons WAP was designed to be lean and mean

10 WML Formatting WML tags Decks and cards Comments Text formatting Tables

11 WML Tags Syntax: strict, conforms to XML 1.0 standard Restricted use of tags Restricted use of tables and images Tags are case-sensitive

12 WML Decks and Cards Deck WML page Consists of a set of cards All cards in a deck are downloaded at one time Must be small and contain logically pertaining cards Cards Can contain text, markup, links, input- fields, tasks, images, etc. Can be related to each other with links

13 A Simple Example Hello World! Welcome to WAP School! ------ Card 1 ------ Hello World! WML Code Only one card is displayed at a time Result

14 Comments Comments are not displayed in the browser

15 Text Formatting normal emphasized strong bold italic underline big small ----- Formatting ----- normal emphasized strong bold italic underline big small WML Code Result

16 Tables Cell 1 Cell 2 Cell 3 ------ Table ------ Cell 1 Cell 2 Cell 3

17 WML Links and Images Links – tag Images

18 Links - Tag Next page

19 Links - Tag Some links: News Sports

20 Image This is an image in a paragraph ----- Image ----- This is an image in a paragraph

21 WML Input Input fields Format Masks Select and Option Fieldset

22 Input Fields Name: Age: Sex: ----- Input ---------- Name: Age : Sex : Syntax: text

23 Specifying a Format Mask A: Any symbolic or uppercase alphabetic character (no numbers) a: Any symbolic or lowercase alphabetic character (no numbers) N: Any numeric character (no symbols or alphabetic characters) X: Any symbolic, numeric, or uppercase alphabetic character (not changeable to lowercase) x: Any symbolic, numeric, or lowercase alphabetic character (not changeable to uppercase) M: Any symbolic, numeric, or uppercase alphabetic character (changeable to lowercase)--for multiple character input, defaults to uppercase first character m: Any symbolic, numeric, or lowercase alphabetic character (changeable to uppercase)--for multiple character input, defaults to lowercase first character To limit the number of characters users can enter, you can specify a single digit number before the character tag--for example, format="3X" lets user enter a maximum of three symbolic, numeric, or uppercase alphabetic characters. To let users enter an unlimited number of characters, specify an asterisk (*) before the character tag--for example, format="*a" lets the user enter any number of symbolic or lowercase alphabetic characters.

24 Select and Option HTML School XML School WAP School --- Selectable List 1--- HTML School XML School WAP School

25 Select Syntax text <select title="label" multiple="boolean” name="variable” default="default" iname="index_var” ivalue="default” tabindex="n"> content

26 Option Syntax The element specifies a particular choice within a element. Syntax content

27 Fieldset Title: Prize: ------- Fieldset-------- CD Info Title: Prize:

28 WML Tasks Go task Prev task Refresh task Noop task

29 Task Elements

30 Go Task Go To Test The element is a task element that instructs the device to open a specified URL. If the URL specifies a particular card, the device displays that card. If the URL specifies a deck, the device displays the first card in that deck. Syntax: content where content represents the variables to set when opening the specified URL: content You can optionally specify one or more variables in a statement:

31 Prev Task Previous Page The element is a task element that instructs the device to remove the current URL from the history stack and open the previous URL. If no previous URL exists on the history stack, specifying has no effect. Syntax: content where content represents the variables to set when opening the previous URL: content You can optionally specify one or more variables in a statement:

32 Noop Task Syntax The element is a task element that instructs the device to do nothing, i.e. "no operation." This element is useful for overriding deck-level elements, called shadowing

33 Refresh Task Syntax content where content represents the variables to refresh: content You must specify at least one variable in a statement: The element is a task element that instructs the device to refresh the specified card variables. The device also refreshes the display if any of those variables are currently shown. Refresh this page

34 Timer The element provides a method for invoking a task automatically after some period of user inactivity. Any task or user action that activates the card starts the timer, and executing any task element stops it. You can only associate one task per timer, and you can only define one timer per card. Hello, Unwired World!... Syntax

35 Forms A form is basically a do/go function Search for:

36 Variables Variables are used to proliferate status information or user entries from one card to another or to the server. Variables consist of a letter or underscore character, followed by zero or more letters, numbers or underscore. WML variables are case sensitive. A WML variable can be specified in various ways: with a setvar command through an input element with a postfield command The major use of variables is for forms.

37 Specifying a Variable with the Setvar Command Syntax: When someone executes a task (like go, prev, and refresh), the setvar element can be used to set a variable with a specified value.

38 Specifying a Variable through an Input Element Variables can also be set through an input element (like input, select, option, etc.). The following example will create a variable named schoolname: HTML School XML School To use the variable we created in the example above: You selected: $(schoolname)

39 Character Entities The following are the only non-numeric entities supported by wml:

40 Template This element behaves like a function that is shared by all the cards of a deck. Syntax Task

41 Conclusion WML offers software developers an entirely new, exciting platform on which to deploy their applications. With this new platform, however, there comes a host of tradeoffs and challenges. A new wrinkle will be added to the design process as things like server round-trips, bandwidth, and display sizes become issues to contend with. There is no doubt that WAP opens the door to a new era in application development and deployment.

42 References www.w3schools.com/wap devgate2.phone.com/htmldoc/32w/wmlref/ www.aitcom.net/wmltutor www.Wap-UK.com www.home-port.net/wml.htm www.waptechinfo.com www.wapdesign.org.uk/ www.nokiko.com/wap/wml-template.asp

43 Any Questions / Suggestions? Please email me at amisha@csee.wvu.edu Thank You!!!


Download ppt "By Amisha Pardasani. Contents Introduction to Wireless Application Protocol Introduction to Wireless Markup Language WML Formatting Links and Images Input."

Similar presentations


Ads by Google