WAP and WML The Wireless Application Protocol  WAP architecture  WML document structure  WML syntax Basic document syntax Layout Text formatting Images.

Slides:



Advertisements
Similar presentations
HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Java Script Session1 INTRODUCTION.
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
The Web Warrior Guide to Web Design Technologies
HTML and XHTML Controlling the Display Of Web Content.
Copyright © Gavin McArdell WML Training Course Gavin McArdell.
1 Static Web Pages Websites on Servers (The Big Picture) –Apache Tomcat can support static web pages –Primarily intended to support servlets and JSP –Some.
Session 2 Tables and forms in HTML Adapted by Sophie Peter from original document by Charlie Foulkes.
Creating Web Page Forms
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
CST JavaScript Validating Form Data with JavaScript.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Understand WML Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University.
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.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
WML, WMLS More acronyms than you can shake a stick at!
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
WML II (“Son of WML”) WML WMLScript. WML - A Quick Review Document structure ,... Text and image controls ...,,..., Navigation controls ,,, Events.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
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.
WML Wireless Markup Language Presented by: Richa Saxena Roll no
1 HTML References: A HTML Tutorial: /HTMLPrimer.html
CIS 375—Web App Dev II WAP. 2 Introduction to WAP WAP ________________________ is an application communication protocol that uses a ______ Browser in.
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
WML Programming. What is WML WML Programming Wireless mark up language based on XML. Purpose:  to specify user interface behavior and  display contents.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
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.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML Forms.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Wireless Application Protocol. WAP- Wireless Application Protocol Gateway WAP WEB Server Content Browser HTTP IPWAP Deck WML.
USING XML AS A DATA SOURCE. Data binding is a process by which information in a data source is stored as an object in computer memory. In this presentation,
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.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
WML & WML Script Presented by Kelvin Liu 01/06/2000.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
WWW Programming Model. WWW Model The Internet WWW architecture provides a flexible and powerful programming model. Applications and content are presented.
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Forms.
Week 10: HTML Forms HNDIT11062 – Web Development.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
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.
HTML CS422 Dick Steflik.
How to Write Web Forms By Mimi Opkins.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 16 The World Wide Web.
Mobile Internet and WAP
Presentation transcript:

WAP and WML The Wireless Application Protocol  WAP architecture  WML document structure  WML syntax Basic document syntax Layout Text formatting Images Navigation Events Variables

WAP and WML

WAP Architecture Client  Any WAP-enabled phone, ie any phone which runs the Wireless Application Protocol browser software  No unique hardware is required  There are at least 158 different models today, according to developer.openwave.com WAP Gateway  This is a service provided by your mobile service carrier  There are at least 51 carriers worldwide who offer WAP gateways (developer.openwave.com)  The WAP gateway serves several purposes: Serve WML, WMLS, and WBMP content Compile WMLScript Compress all content into binary form

WAP Architecture Do you still need a web server?  Early WAP server designs included an HTML-to-WML converter. The theory was that you could serve your original content, just reformulate the tags into WML in an automated manner. Your web server became a back end behind your WAP server; the WAP server would translate requests from the Gateway, through to the web server, and back.  This failed painfully. It’s clear now that your content needs to either be in WML, or you need to design for a one-inch-square screen in your HTML. So, if not a web server, then--?  Your WAP server is the web server.  You can serve both types of content from one system.

WAP Architecture Follow the request:  Client establishes a data connection to WAP Gateway  Client sends WTAI (“Wireless Telephony Application Interface”--HTTP for phones) request for URL entered  WAP Gateway receives request, decodes it  WAP Gateway sends HTTP request to Web Server  Web Server replies with content  WAP Gateway re-encodes content and sends it back to client  Client renders content locally

WML : Documents, Decks and Cards Every WML document must begin with an XML declaration and a DTD:  All WML documents contain one or more cards. Each card contains the content for a single page of display. The tag is the root of the deck.  Within the tag, you’ll one or more ’s and perhaps a tag.

WML Syntax   title=“…”  id =“…”  newcontext =“true”, “false”  onenterbackward =“[url]”  onenterforward =“[url]”  ontimer =“[url]”

WML Syntax - Layout  align=“left”, “right”, center”  mode=“wrap”, “nowrap”  columns=“…”  align=“l”, “c”, “r”  Cell 1 Cell 2 Cell 3

WML Syntax - Text Formatting - bold text - big text - emphasized text - italicised text - small text - strong text -underlined text

WML Syntax - Images - Render a WBMP file  src=“…”  align = “top”, “middle”, “bottom”  alt=“…”  height=“…”, width=“…”  hspace=“…”, vspace=“…” An image:

WML Syntax - Navigation As in HTML, you link from page to page explicitly with anchors. This is a link WML offers the tag and the tag - the simple anchor tag  href=“…” - more powerful anchor tag ,,,,...

WML Syntax - Navigation A softkey on a mobile phone is a button whose function can be set by the software. Most phone buttons are softkeys. - Map a user softkey to an action; similar to an anchor tag.  label=“…”  type=“accept”, “prev”, “help”, “reset”, “options”, “delete”, “unknown”, “x-*”, “vnd.*” “accept” is the “YES” button on most phones; “prev” is the “NO” button. When using softkeys, be careful to respect common usage rules.

WML Syntax - Navigation - Navigate to a new card - Back up one on the card stack - Reloads the current page - Do nothing - Sets a variable - Sends a post (or get) field value to the server

WML Syntax - Events is the softkey event handler. is a more generalised events handler.  type=“onenterbackward”, “onenterforward”, “onpick”, “ontimer” Use onevent to process data differently depending on the action of the user. For example, you might want to initialise a variable to zero with onenterforward, but then incremement it to track user returns in onenterback. Onenterback will fire whenever the user uses the prev softkey to return to the page.

WML Syntax - Timer Events Use the tag to initialise a timer.  The timer’s value field specifies 1/10’th’s of a second. The tag defines an ontimer event, whose value is a URL. When the times out, the ’s ontimer URL is loaded. Here by timer!

WML Syntax - Variables A variable in a WML script is a data field whose value can be changed before the next update. This is a divergence from HTML. HTML does not have the concept of variables, because HTML has inline JavaScript instead. Variable names, like all concepts in XML, are case-sensitive. To refer to a variable in your code, use a dollar sign ($) followed by the name of the variable, optionally enclosed in parentheses.  $foo  $(foo)

WML Syntax - Variables Variables are set with the tag. Variables, once set, take effect when the page is next reloaded. Unfortunately, since runs when an event triggers it, you can’t initialise variables cleanly.

WML Syntax - Variables Variables can also be set through user input with the tag  name=“…”  type=“text”, “password”, emptyok=“true”, “false”  maxlength=“…”, size=“…”  format = [*|n][AaNXxMm] A / a : Uppercase / lowercase alphabetic or punctuation N : numeric X / x : Uppercase / lowercase alphabetic M / m : all characters * : arbitrary number of characters n : set number of characters

WAP and WML - Recap WAP architecture  Client, WAP Gateway, Web Server WML document structure  DTDs, decks and ’s WML syntax  Basic document syntax -,,...  Layout -,,,...  Text formatting -,,,,,...  Images - - WBMPs only.  Navigation -,,  Events - ontimer, onenterforward, onenterbackward,...  Variables -,, $(foo)

WAP and WML - Bibliography WAP in Easy Steps, by Mike McGrath. (C)2000 published by ComputerStep, Warwickshire - a really well-done WML reference - OpenWave are the folks who’re defining the WAP gateway standards. They also make a mobile device SDK. - Technical specifications page for the Open Mobile Alliance, the public body which binds the many corporations investing in WAP and related technologies. Note: site can be a bit thick.