SlideShare a Scribd company logo
1 of 11
 WMLScript (Wireless Markup Language
Script) is the client-side scripting language of
WML (Wireless Markup Language).
 With WMLScript, the wireless device can do
some of the processing and computation.
 This reduces the number of requests and
responses to/from the server.
 WML Script supports following type of
operators.
› Arithmetic Operators
› Comparison Operators
› Logical (or Relational) Operators
› Assignment Operators
› Conditional (or ternary) Operators
 Control statements are used for controlling
the sequence and iterations in a program.
Statement Description
if-else Conditional branching
for Making self-incremented fixed iteration loop
while Making variable iteration loop
break Terminates a loop
continue Quit the current iteration of a loop
 The user-defined functions are declared in a separate file having the
extension .wmls.
 Functions are declared as follows
function name (parameters)
{ control statements;
return var;
}
The functions used are stored in a separate file with the extension
.wmls.
The functions are called as the filename followed by a hash, followed
by the function name
Ex:
 maths.wmls#squar()
 The are six standard libraries totally.
 Lang − The Lang library provides functions related to the WMLScript
language core.
 Example Function − abs(),abort(), characterSet(),float(), isFloat(), isInt(),
max(), isMax(), min(), minInt(), maxInt(), parseFloat(), parseInt(),
random(), seed()
 Float − The Float library contains functions that help us perform floating-
point arithmetic operations.
 Example Function − sqrt(), round(), pow(), ceil(), floor(), int(),
maxFloat(), minFloat()
 String − The String library provides a number of functions that help us
manipulate strings.
 Example Function − length(), charAt(), find(), replace(), trim(),
compare(), format(), isEmpty(), squeeze(), toString(), elementAt(),
elements(), insertAt(), removeAt(), replaceAt()
 URL − The URL library contains functions that help us manipulate URLs.
Example Function − getPath(), getReferer(), getHost(), getBase(),
escapeString(), isValid(), loadString(), resolve(), unescapeString(),
getFragment()
 WMLBrowser − The WMLBrowser library provides a group of functions to
control the WML browser or to get information from it.
Example Function − go(), prev(), next(), getCurrentCard(), refresh(),
getVar(), setVar()
 Dialogs − The Dialogs library Contains the user interface functions.
Example Function − prompt(), confirm(), alert()
.
 There are two types of comments in WMLScript
−
 Single-line comment − To add a single-line
comment, begin a line of text with the //
characters.
Ex: // This is a single-line comment.
 Multi-line comment − To add a multi-line
comment, enclose the text within /* and */.
 /* This is a multi-line comment. */
 The WMLScript language is case-sensitive.
 For example, a WMLScript function with the
name WMLScript Function is different from
wmlscript function.
 The capitalization must care when defining
or referring to a function or a variable in
WMLScript.
 Except in string literals, WMLScript ignores
extra whitespaces like spaces, tabs, and
newlines.
 A semicolon is required to end a statement in
WMLScript.
Thank you

More Related Content

Similar to WML Script.pptx

Javascript part1
Javascript part1Javascript part1
Javascript part1
Raghu nath
 
SQL Server 2000 Research Series - Architecture Overview
SQL Server 2000 Research Series - Architecture OverviewSQL Server 2000 Research Series - Architecture Overview
SQL Server 2000 Research Series - Architecture Overview
Jerry Yang
 
IBM Solutions '99 XML and Java: Lessons Learned
IBM Solutions '99 XML and Java: Lessons LearnedIBM Solutions '99 XML and Java: Lessons Learned
IBM Solutions '99 XML and Java: Lessons Learned
Ted Leung
 

Similar to WML Script.pptx (20)

Sql functions
Sql functionsSql functions
Sql functions
 
UXComm: Universal XML Communicator, an Agent Architecture
UXComm: Universal XML Communicator, an Agent ArchitectureUXComm: Universal XML Communicator, an Agent Architecture
UXComm: Universal XML Communicator, an Agent Architecture
 
Event Processing and Integration with IAS Data Processors
Event Processing and Integration with IAS Data ProcessorsEvent Processing and Integration with IAS Data Processors
Event Processing and Integration with IAS Data Processors
 
A Survey of Concurrency Constructs
A Survey of Concurrency ConstructsA Survey of Concurrency Constructs
A Survey of Concurrency Constructs
 
Database programming
Database programmingDatabase programming
Database programming
 
Html JavaScript and CSS
Html JavaScript and CSSHtml JavaScript and CSS
Html JavaScript and CSS
 
Java 8 lambda
Java 8 lambdaJava 8 lambda
Java 8 lambda
 
XSLT 3.0 - new features
XSLT 3.0 - new featuresXSLT 3.0 - new features
XSLT 3.0 - new features
 
JDK8 Lambdas and Streams: Changing The Way You Think When Developing Java
JDK8 Lambdas and Streams: Changing The Way You Think When Developing JavaJDK8 Lambdas and Streams: Changing The Way You Think When Developing Java
JDK8 Lambdas and Streams: Changing The Way You Think When Developing Java
 
Clojure concurrency
Clojure concurrencyClojure concurrency
Clojure concurrency
 
Charles Sharp: Java 8 Streams
Charles Sharp: Java 8 StreamsCharles Sharp: Java 8 Streams
Charles Sharp: Java 8 Streams
 
Module02
Module02Module02
Module02
 
Sql server
Sql serverSql server
Sql server
 
Javascript part1
Javascript part1Javascript part1
Javascript part1
 
Short intro to scala and the play framework
Short intro to scala and the play frameworkShort intro to scala and the play framework
Short intro to scala and the play framework
 
Unit 3
Unit 3Unit 3
Unit 3
 
Unit 1
Unit  1Unit  1
Unit 1
 
Choose'10: Ralf Laemmel - Dealing Confortably with the Confusion of Tongues
Choose'10: Ralf Laemmel - Dealing Confortably with the Confusion of TonguesChoose'10: Ralf Laemmel - Dealing Confortably with the Confusion of Tongues
Choose'10: Ralf Laemmel - Dealing Confortably with the Confusion of Tongues
 
SQL Server 2000 Research Series - Architecture Overview
SQL Server 2000 Research Series - Architecture OverviewSQL Server 2000 Research Series - Architecture Overview
SQL Server 2000 Research Series - Architecture Overview
 
IBM Solutions '99 XML and Java: Lessons Learned
IBM Solutions '99 XML and Java: Lessons LearnedIBM Solutions '99 XML and Java: Lessons Learned
IBM Solutions '99 XML and Java: Lessons Learned
 

More from kasthurimukila

More from kasthurimukila (12)

Linked list and its operations - Traversal
Linked list and its operations - TraversalLinked list and its operations - Traversal
Linked list and its operations - Traversal
 
Input - Output Organization and I/O Interface
Input - Output Organization and I/O InterfaceInput - Output Organization and I/O Interface
Input - Output Organization and I/O Interface
 
Blockchain Technology ,Architecture and its Structure
Blockchain Technology ,Architecture and its StructureBlockchain Technology ,Architecture and its Structure
Blockchain Technology ,Architecture and its Structure
 
Circular Linked List.pptx
Circular Linked List.pptxCircular Linked List.pptx
Circular Linked List.pptx
 
Files_in_C.ppt
Files_in_C.pptFiles_in_C.ppt
Files_in_C.ppt
 
data analytics.pptx
data analytics.pptxdata analytics.pptx
data analytics.pptx
 
Big Data.pptx
Big Data.pptxBig Data.pptx
Big Data.pptx
 
Scatter Plot.pptx
Scatter Plot.pptxScatter Plot.pptx
Scatter Plot.pptx
 
Introduction to Database, Purpose of Data, Data models, Components of Database
Introduction to Database, Purpose of Data, Data models, Components of DatabaseIntroduction to Database, Purpose of Data, Data models, Components of Database
Introduction to Database, Purpose of Data, Data models, Components of Database
 
Number system
Number systemNumber system
Number system
 
Java
Java Java
Java
 
Dbms
DbmsDbms
Dbms
 

Recently uploaded

Recently uploaded (20)

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

WML Script.pptx

  • 1.
  • 2.  WMLScript (Wireless Markup Language Script) is the client-side scripting language of WML (Wireless Markup Language).  With WMLScript, the wireless device can do some of the processing and computation.  This reduces the number of requests and responses to/from the server.
  • 3.  WML Script supports following type of operators. › Arithmetic Operators › Comparison Operators › Logical (or Relational) Operators › Assignment Operators › Conditional (or ternary) Operators
  • 4.  Control statements are used for controlling the sequence and iterations in a program. Statement Description if-else Conditional branching for Making self-incremented fixed iteration loop while Making variable iteration loop break Terminates a loop continue Quit the current iteration of a loop
  • 5.  The user-defined functions are declared in a separate file having the extension .wmls.  Functions are declared as follows function name (parameters) { control statements; return var; } The functions used are stored in a separate file with the extension .wmls. The functions are called as the filename followed by a hash, followed by the function name Ex:  maths.wmls#squar()
  • 6.  The are six standard libraries totally.  Lang − The Lang library provides functions related to the WMLScript language core.  Example Function − abs(),abort(), characterSet(),float(), isFloat(), isInt(), max(), isMax(), min(), minInt(), maxInt(), parseFloat(), parseInt(), random(), seed()  Float − The Float library contains functions that help us perform floating- point arithmetic operations.  Example Function − sqrt(), round(), pow(), ceil(), floor(), int(), maxFloat(), minFloat()  String − The String library provides a number of functions that help us manipulate strings.  Example Function − length(), charAt(), find(), replace(), trim(), compare(), format(), isEmpty(), squeeze(), toString(), elementAt(), elements(), insertAt(), removeAt(), replaceAt()
  • 7.  URL − The URL library contains functions that help us manipulate URLs. Example Function − getPath(), getReferer(), getHost(), getBase(), escapeString(), isValid(), loadString(), resolve(), unescapeString(), getFragment()  WMLBrowser − The WMLBrowser library provides a group of functions to control the WML browser or to get information from it. Example Function − go(), prev(), next(), getCurrentCard(), refresh(), getVar(), setVar()  Dialogs − The Dialogs library Contains the user interface functions. Example Function − prompt(), confirm(), alert() .
  • 8.  There are two types of comments in WMLScript −  Single-line comment − To add a single-line comment, begin a line of text with the // characters. Ex: // This is a single-line comment.  Multi-line comment − To add a multi-line comment, enclose the text within /* and */.  /* This is a multi-line comment. */
  • 9.  The WMLScript language is case-sensitive.  For example, a WMLScript function with the name WMLScript Function is different from wmlscript function.  The capitalization must care when defining or referring to a function or a variable in WMLScript.
  • 10.  Except in string literals, WMLScript ignores extra whitespaces like spaces, tabs, and newlines.  A semicolon is required to end a statement in WMLScript.