News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

WMLScript Dialogs Library Functions

Started by Kalyan, Aug 02, 2009, 07:26 PM

Previous topic - Next topic

Kalyan

WMLScript Dialogs Library Functions

Function   Description

alert()   Displays a message and waits for a confirmation
confirm()   Displays a message and waits for an answer
prompt()   Displays a question and waits for an input



WMLScript Float Library Functions

The Float library works only on clients that support floating-point numbers. If floating-point numbers are not supported, all functions should return invalid.

Function   Description

ceil(x)   Returns the nearest integer that is not smaller than a specified number
floor(x)   Returns the nearest integer that is not larger than a specified number
int(x)   Returns the integer part of a specified number
maxFloat()   Returns the largest possible floating-point number
minFloat()   Returns the smallest possible floating-point number
pow(x,y)   Returns the value of x raised to the power of y
round(x)   Rounds a number to the nearest integer
sqrt(x)   Returns the square root of a number


WMLScript Lang Library Functions

Function   Description

abort()   Aborts a WMLScript and returns a message to the caller of the script
abs(x)    Returns the absolute value of a number
characterSet()   Returns the character-set supported by the WMLScript interpreter
exit()   Exits a WMLScript and returns a message to the caller of the script
float()   Returns a Boolean value that indicates whether floating-point numbers are supported
isFloat()   Returns a Boolean value that indicates whether a value can be converted into a floating-point number by the parseFloat() function
isInt()   Returns a Boolean value that indicates whether a value can be converted into an integer by the parseInt() function
max(x,y)   Returns the number with the highest value of x and y
maxInt()   Returns the maximum possible integer value
min(x,y)   Returns the number with the lowest value of x and y
minInt()   Returns the minimum possible integer value
parseFloat()   Returns a floating-point value defined by a string
parseInt()   Returns an integer defined by a string
random(x)   Returns a random integer between 0 and x
seed()   Initializes the random number generator with a number, and returns an empty string