WML & WML Script Presented by Kelvin Liu 01/06/2000.

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

Introducing JavaScript
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Java Script Session1 INTRODUCTION.
1 CSC 551: Web Programming Spring 2004 client-side programming with JavaScript  scripts vs. programs  JavaScript vs. JScript vs. VBScript  common tasks.
HTML 5 and CSS 3, Illustrated Complete Unit L: Programming Web Pages with JavaScript.
The Web Warrior Guide to Web Design Technologies
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.
MultiPlatform Applications Module. Agneda for today Areas to be covered Assessment for the module Agenda for the module timetable Procatical sessions.
WML by Mary Lee, Doug Kondor, Thu Nguyen. C499 PresentationML 2 Agenda MARY LEE Introduction History Security Issue THU NGUYEN Design Syntax DOUG KONDOR.
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
WAP/ WML Author :Hsien-Pang Tsai. Outlines Introduction WAP Architecture WML Conclusion Reference.
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.
4.1 JavaScript Introduction
WML II (“Son of WML”) WML WMLScript. WML - A Quick Review Document structure ,... Text and image controls ...,,..., Navigation controls ,,, Events.
Networks: L16 1 WAP : Wireless Application Protocol a standard developed by the WAP Forum : –Nokia, Ericsson, Motorola et al. – – now consolidated.
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.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
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.
SYST Web Technologies SYST Web Technologies Lesson 6 – Intro to JavaScript.
DHTML: Dynamic HTML Internet Technology1. What is DHTML? A collection of enhancements to HTML ► To create dynamic and interactive websites Combination.
WML Programming. What is WML WML Programming Wireless mark up language based on XML. Purpose:  to specify user interface behavior and  display contents.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
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.
1 JavaScript in Context. Server-Side Programming.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
FYP: LYU0001 Wireless-based Mobile E-Commerce on the Web Supervisor: Prof. Michael R. Lyu By: Tony, Wat Hong Fai Harris, Yan Wai Keung.
Wireless Application Protocol. WAP- Wireless Application Protocol Gateway WAP WEB Server Content Browser HTTP IPWAP Deck WML.
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
McLean HIGHER COMPUTER NETWORKING Lesson 6 Types of Browsers & WAP Explanation of browser functions Wireless access to the Internet Description of.
 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.
JavaScript Syntax, how to use it in a HTML document
JavaScript - Basic Concepts Prepared and Presented by Hienvinh Nguyen, Afshin Tiraie.
Presented By: Dixit Wadhwani B.TECH 3 rd YEAR, CSE 07CS Sir Padampat Singnania University Technical Seminar on Wireless Markup Language Guided By:
Web Application Programming Presented by: Mehwish Shafiq.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
1 Server versus Client-Side Programming Server-SideClient-Side.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Introduction to JavaScript CSc 2320 Fall 2014 Disclaimer: All words, pictures are adopted from “Simple JavaScript”by Kevin Yank and Cameron Adams and also.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Introduction to Javascript. What is javascript?  The most popular web scripting language in the world  Used to produce rich thin client web applications.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
CGS 3066: Web Programming and Design Spring 2016 Introduction to JavaScript.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
Chapter 17 The Need for HTML 5.
Wireless Markup Language
CGS 3066: Web Programming and Design Spring 2017
JavaScript is a programming language designed for Web pages.
Section 17.1 Section 17.2 Add an audio file using HTML
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
JavaScript an introduction.
DHTML Javascript Internet Technology.
WEB PROGRAMMING JavaScript.
DHTML Javascript Internet Technology.
M-Commerce Wireless Markup Language (WML) By Prof T.R. Vaidyanathan.
Chapter 23 - Wireless Internet and m-Business
Tutorial 10 Programming with JavaScript
JavaScript Basics What is JavaScript?
Mobile Internet and WAP
Presentation transcript:

WML & WML Script Presented by Kelvin Liu 01/06/2000

Agenda Explain what is WML & WMLScripts. Explain the concept how WML “pages” are organized. How to create a WML “deck” from scratch. Integrate WML scripts functions into WML decks.

What Is WML ? Wireless Markup Language (WML) version 1.1 is designed for creating applications that run on small, mobile devices such as cellular phones and personal digital assistants.

WML Features WML looks somewhat like Hyper Text Markup Language (HTML). WML is a formally defined XML application. It inherits most of its syntactic constructs from extensible markup language (XML). WML has support for text and image.

WML Features User input support Text entry, options selections and task invocation Support Unicode Narrow-band optimization

Decks and Cards WML data is structured as a collection of “Cards”. A Single collection of cards is referred to as a WML “Decks”.

Decks and Cards Deck 1Deck 2 Card A Card B Card C Card D Card E Card F

Decks and Cards HTML Vs WML HTML WML html pages = wml decks html bookmarks = wml cards

WML Basics Syntax WML is case sensitive WML is markup language, uses tags - Starts of an element - Ends of an element - An empty element e.g. Line Break

WML Basics Syntax Document header must be present tag defines the deck. tag provide access control and metadata for the deck. tag defines different cards in a deck.

Example One Hello World!!!

Navigation in WML Creating a link in WML is just like creating a link in HTML Long Format Sample Link Short Format Sample Link

Example Two This card has two links to the second card. Short Form Link Long Form Link This is the second card.

Images WAP 1.1 standard specifies a new and only supported picture format, WBMP. It is a B/W image format without compression. Syntax

Events and Tasks Events are used to handle navigation and events by specifying the processing of user agent events Events: do – gives the user a general mechanism for performing actions on the current card. ontimer – The event occurs when a timer expires. onenterforward – The event occurs when the user enters a card using a go task or any method with identical semantics. onenterbackward – The event occurs when the user navigates into a card using a prev task or any method with identical semantics. onpick – The events occurs when the user select or deselects the item in which the event is specified. ETC………….

Events and Tasks Tasks defines the action to be performed when a certain event occurs. Tasks: go – It declares a go task, indicating navigation to an URL. prev – It declares a prev task, indicating navigation to the previous URL in the history stack. refresh – It declares a refresh task, indicating an update of the specified card variables. setvar – It specifies the variable to set in the current browser context as a side effect of executing a task. noop – It specifies that nothing should be done, that is, “no operation.” ETC…….

What is WMLScript? WMLScript was designed to provide general scripting capabilities to the WAP architecture. You can use WMLSctipt to complement WML, such as: Checking the validity of user input Accessing facilities of the user agent Generating messages and dialogs locally Allowing extensions to the user agent software and configuring a user agent after it has been deployed WMLScript has the same base as JavaScript, but some advanced features have been dropped.

WMLScript Syntax Syntax very similar to JavaScript. Case Sensitive Case != case Semicolons end most statement variable = value; Line or block comments//this OR /* this */ Basic operations+,-,*,/,=,==,!=,&&,< String operations“string text” + string_variable Blocks of statement {}while(somethings) {do this} Functions and parametersfunction function_name (p1,p2)

Calling functions from WML WML cards refer to WMLScript functions with URL calls Function must be specified as an externally callable function with extern Extern function func1(param1, param2) {…..}

WMLScript Libraries Standard libraries make WMLScript more efficient. Stored in client’s scripting environment. Libraries Lang(e.g. abs, min, max, etc.) Float(e.g. int, roung, sqrt, etc.) String (e.g. length, subString, find, etc.) URL(e.g. getHost, getPort, getPath, etc.) WMLBrowser (e.g. getVar, setVar, go, etc.) Dialogs(e.g. prompt,confirm, alert, etc.)

Example Three $num1 + $num2 = $result Calculate $num1 + $num2 = $result Calculate Again extern function add(x,y) { var res = Lang.parseInt(x)+Lang.parseInt(y); WMLBrowser.setVar("result",res); WMLBrowser.refresh(); WMLBrowser.go("example3.wml#c2"); } Example Provided by NOKIA