WML Programming. What is WML WML Programming Wireless mark up language based on XML. Purpose:  to specify user interface behavior and  display contents.

Slides:



Advertisements
Similar presentations
3.02D HTML Overview 3.02 Develop webpages.
Advertisements

Web Development & Design Foundations with XHTML
HTML: HyperText Markup Language Hello World Welcome to the world!
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
The Web Warrior Guide to Web Design Technologies
 2005 Pearson Education, Inc. All rights reserved Introduction.
1 Dickson K.W. Chiu PhD, SMIEEE Thanks to Prof. S.C. Cheung (HKUST) CSIT600b: XML Programming WML.
Copyright © Gavin McArdell WML Training Course Gavin McArdell.
1 Outline 13.1Introduction 13.2A Simple Program: Printing a Line of Text in a Web Page 13.3Another JavaScript Program: Adding Integers 13.4Memory Concepts.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
WAP’s WML by David Boncarosky  WML Inherits From XML  WML Extends Interactivity to Cell Phones, Pagers, PDAs  Display Varies Widely From Device to Device.
Connecting to the Web Using Mobile Devices Representation and Management of Data on the Web.
Guide To UNIX Using Linux Third Edition
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
COMPUTERS AND INFORMATION SYSTEMS HTML. How the Web Works To access a web site  Enter its address (URL) in the address box of your browser 
Introduction to scripting
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
An Introduction to WAP/WML. What is WAP? WAP stands for Wireless Application Protocol. WAP is for handheld devices such as mobile phones. WAP is designed.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
DAT602 Database Application Development Lecture 14 HTML.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
By Amisha Pardasani. Contents Introduction to Wireless Application Protocol Introduction to Wireless Markup Language WML Formatting Links and Images Input.
Lectured By: Vivek Dimri Assistant Professor, CSE Dept. SET, Sharda University, Gr. Noida.
WAP and WML The Wireless Application Protocol  WAP architecture  WML document structure  WML syntax Basic document syntax Layout Text formatting Images.
WML Wireless Markup Language Presented by: Richa Saxena Roll no
CIS 375—Web App Dev II WAP. 2 Introduction to WAP WAP ________________________ is an application communication protocol that uses a ______ Browser in.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
CS117 Introduction to Computer Science II Lecture 1 Introduction to WWW and HTML Instructor: Li Ma Office: NBC 126 Phone: (713)
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Objectives: 1. Create a Skeleton HTML 2. View a Skeleton File Through a Server and Browser 3. Learn HTML Body Tags for the Display of Text and Graphics.
All Web pages are written with some form of HTML (HyperText Markup Language). HTML documents are saved as Text Only files so virtually any computer can.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Using Cocoon Page 2 Ovidiu Predescu April 5th, 2001 Using Cocoon to build Web sites for wireless devices Ovidiu Predescu Hewlett Packard ApacheCon 2001.
Using Cocoon Page 2 Ovidiu Predescu April 5th, 2001 Using Cocoon to build Web sites for wireless devices Ovidiu Predescu Hewlett Packard ApacheCon 2001.
WML What is WML? WML stands for Wireless Markup Language. It is a mark-up language inherited from HTML, but WML is based on XML, so it is much stricter.
Ericsson Competence Solutions Rev A16/11/011 Mobile Learning Course for R380 and R520 Presented by Michelle Almeida Course Structure Design Guidelines.
Tutorial 8 Programming with ActionScript 3.0. XP Objectives Review the basics of ActionScript programming Compare ActionScript 2.0 and ActionScript 3.0.
Dynamic Web Pages & JavaScript. Dynamic Web Pages Dynamic = Change Dynamic Web Pages are web pages that change. More than just moving graphics around.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML: Hyptertext Markup Language Doman’s Sections.
Wireless Application Protocol. WAP- Wireless Application Protocol Gateway WAP WEB Server Content Browser HTTP IPWAP Deck WML.
McLean HIGHER COMPUTER NETWORKING Lesson 6 Types of Browsers & WAP Explanation of browser functions Wireless access to the Internet Description of.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 23 - Wireless Internet and m- Business Outline 23.1 Introduction 23.2 M-Business 23.3 Identifying.
Presented By: Dixit Wadhwani B.TECH 3 rd YEAR, CSE 07CS Sir Padampat Singnania University Technical Seminar on Wireless Markup Language Guided By:
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
XP Tutorial 8 Adding Interactivity with ActionScript.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
WML & WML Script Presented by Kelvin Liu 01/06/2000.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
XP Tutorial 8 Adding Interactivity with ActionScript.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
Introduction to Scripting
WEB PROGRAMMING JavaScript.
Tutorial 10: Programming with javascript
JavaScript: Introduction to Scripting
Mobile Internet and WAP
Presentation transcript:

WML Programming

What is WML WML Programming Wireless mark up 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 Purpose:  to specify user interface behavior and  display contents on wireless devices such as (phones), pagers, (PDAs)  WAP, WML > WWW, HTML

What is WML WML Programming WML designed to support range of devices which have following characterstics  Small display size (relative to conventional personal computers)  Limited memory and CPU size  Low bandwidth WML designed to support range of devices which have following characterstics  Small display size (relative to conventional personal computers)  Limited memory and CPU size  Low bandwidth  WAP is an application communication protocol  WAP is used to access services and information  WAP is an application communication protocol  WAP is used to access services and information

WML Coding WML Programming WML Based on a Deck of Cards  the device only shows 1 card at a time  Cards in a Deck can Interact with other Cards in Deck and Cards in External Decks WML Based on a Deck of Cards  the device only shows 1 card at a time  Cards in a Deck can Interact with other Cards in Deck and Cards in External Decks Deck card 1

WML Coding WML Programming  All WML pages must have a specific header.  The Deck is delimited by the... tag  All WML pages must have a specific header.  The Deck is delimited by the... tag <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "

WML Coding- Showing Text on Screen WML Programming  Cards are delimited by tag  Cards are delimited by tag <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" " <wml> <card id=“one”> Hello World ! </card> </wml>

WML Programming <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" " Hello World! Welcome to WAP School! Hello World ! Only one card is displayed at a time Result WML Coding- Showing Text on Screen

WML Programming WML Coding- Comments Comments not displayed in browser.

WML Programming WML Coding- Text Formatting emphasized strong bold italic underline big small normal emphasized strong bold italic underline big small

WML Programming WML Coding- Anchors Anchor tag used to redirect to another card. Syntax: link-name Syntax: link-name If target is another card then use # with card name. If target is another wml page then specify that file without #. Syntax: Syntax:

WML Programming WML Coding- Anchors Anchor tag used to redirect to another card. Syntax: link-name Syntax: link-name My First link

WML Programming Anchor execution Some links: News Sports Execution

WML Programming WML Input

WML Programming WML Input Input Fields Select & Option FieldSet

WML Programming Input Fields Name: Age: Sex: Input Name: Age : Sex : Syntax: text Only Numbers can be entered. * represent unlimited digit.

WML Programming 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. Input Fields

WML Programming Select & Option HTML School XML School WAP School --- Selectable List 1--- HTML School XML School WAP School

WML Programming Select Syntax: <select title="label" multiple="boolean” name="variable” default="default" iname="index_var” ivalue="default” tabindex="n"> Syntax: <select title="label" multiple="boolean” name="variable” default="default" iname="index_var” ivalue="default” tabindex="n">

WML Programming content Option Syntax

WML Programming

FieldSet Title: Prize: Fieldset CD Info Title: Prize:

WML Programming WML Tasks

WML Programming WML tasks Go task Pre task Refresh task noop task

WML Programming go task  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.  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.

WML Programming Prev task  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.  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:

WML Programming tag Prev tag used to return to previously visited card. Return:

WML Programming Noop task  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  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 The tag can be used to activate a task when the user clicks on a word/phrase on the screen. When the user clicks on the "Back" link, he or she should be taken back to the previous card. But the tag prevents this operation; when the user clicks on the "Back" link nothing will happen

WML Programming Refresh task 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. 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. Syntax content where content represents the variables to refresh: content You must specify at least one variable in a statement:

WML Programming Refresh task

WML Programming WML Variable

WML Programming Variables  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  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

WML Programming Variables-setvar tag 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.

WML Programming Variables-Using input field 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)

WML Programming Form Example Search for:

WML Programming