Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Div
styledisplay:none

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

Div
iddescription



HTML Table
id
classservoy sReturnTypes
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Return Types
Table Row (tr)
Table Cell (td)
Span
classsWordList
Array
Span
classsWordList
Boolean
Span
classsWordList
Date
Span
classsWordList
Function
Span
classsWordList
JSON
Span
classsWordList
Math
Span
classsWordList
Namespace
Span
classsWordList
Number
Span
classsWordList
Object
Span
classsWordList
QName
Span
classsWordList
RegExp
Span
classsWordList
Special Operators
Span
classsWordList
Statements
Span
classsWordList
String
Span
classsWordList
XML
Span
classsWordList
XMLList



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
Infinity
Numeric value representing infinity.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
NaN
Value representing Not-a-Number.
Table Row (tr)
Table Cell (td)
Object
Table Cell (td)
undefined
The value undefined.



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
decodeURI(encodedURI)
Decodes a URI previously encoded with encodeURI or another similar routine.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
decodeURIComponent(encodedURI)
Decodes a URI component previously created by encodeURIComponent or by a similar routine.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
encodeURI(URI)
Encodes a URI by replacing certain characters with escape sequences.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
encodeURIComponent(URI)
Encodes a URI component by replacing all special characters with their corresponding UTF-8 escape sequences.
Table Row (tr)
Table Cell (td)
Object
Table Cell (td)
eval(expression)
Evaluates JavaScript code passed as a string.
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
isFinite(n)
Returns true if the given number is a finite number.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
isNaN(value)
The NaN property indicates that a value is 'Not a Number'.
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
isXMLName(name)
Returns true if the given name can be used as a valid name for an XML element or attribute.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
parseFloat(text)
Makes a floating point number from the starting numbers in a given string.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
parseInt(text)
Makes a integer from the starting numbers in a given string in the base specified.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
parseInt(text, radix)
Makes a integer from the starting numbers in a given string in the base specified.
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
uneval(obj)
Returns the string representation behind a given object.



HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Details
Table Body (tbody)
idInfinity
Table Row (tr)
idname
Table Cell (td)

Infinity

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Numeric value representing infinity.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
Infinity
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idNaN
Table Row (tr)
idname
Table Cell (td)

NaN

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Value representing Not-a-Number.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
NaN
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idundefined
Table Row (tr)
idname
Table Cell (td)

undefined

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The value undefined.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Object
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
undefined
Table Row (tr)
classlastDetailRow
Table Cell (td)
 



HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Details
Table Body (tbody)
iddecodeURI-String
Table Row (tr)
idname
Table Cell (td)

decodeURI

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
decodeURI
Span
(encodedURI)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Decodes a URI previously encoded with encodeURI or another similar routine.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} encodedURI
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var str = "http://www.mysite.com/my code.asp?name=[cool]";
var encoded = encodeURI(str);
var decoded = decodeURI(encoded);
application.output(encoded);//http://www.mysite.com/my%20code.asp?name=%5bcool%5d
application.output(decoded);//http://www.mysite.com/my code.asp?name=[cool]
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
iddecodeURIComponent-String
Table Row (tr)
idname
Table Cell (td)

decodeURIComponent

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
decodeURIComponent
Span
(encodedURI)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Decodes a URI component previously created by encodeURIComponent or by a similar routine.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} encodedURI
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var str = "my code.asp?name=[cool]";
var encoded = encodeURIComponent(str);
var decoded = decodeURIComponent(encoded);
application.output(encoded); //my%20code.asp%3fname%3d%5bcool%5d
application.output(decoded); //my code.asp?name=[cool]
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idencodeURI-String
Table Row (tr)
idname
Table Cell (td)

encodeURI

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
encodeURI
Span
(URI)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Encodes a URI by replacing certain characters with escape sequences.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} URI
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var str = "http://www.mysite.com/my code.asp?name=[cool]";
var encoded = encodeURI(str);
var decoded = decodeURI(encoded);
application.output(encoded);//http://www.mysite.com/my%20code.asp?name=%5bcool%5d
application.output(decoded);//http://www.mysite.com/my code.asp?name=[cool]
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idencodeURIComponent-String
Table Row (tr)
idname
Table Cell (td)

encodeURIComponent

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
encodeURIComponent
Span
(URI)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Encodes a URI component by replacing all special characters with their corresponding UTF-8 escape sequences.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} URI
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var str = "my code.asp?name=[cool]";
var encoded = encodeURIComponent(str);
var decoded = decodeURIComponent(encoded);
application.output(encoded); //my%20code.asp%3fname%3d%5bcool%5d
application.output(decoded); //my code.asp?name=[cool]
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
ideval-String
Table Row (tr)
idname
Table Cell (td)

eval

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Object
Span
stylefont-weight: bold;
eval
Span
(expression)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Evaluates JavaScript code passed as a string. Returns the value returned by the evaluated code.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} expression
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Object
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
eval("var x = 2 + 3;");
application.output(x); // prints: 5.0
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idisFinite-Number
Table Row (tr)
idname
Table Cell (td)

isFinite

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
isFinite
Span
(n)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns true if the given number is a finite number.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Number} n
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
application.output(isFinite(1)); // prints: true
application.output(isFinite(Infinity)); // prints: false
application.output(isFinite(isNaN)); // prints: false
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idisNaN-Object
Table Row (tr)
idname
Table Cell (td)

isNaN

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
isNaN
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The NaN property indicates that a value is 'Not a Number'.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Object} value
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
isNaN( value )
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idisXMLName-String
Table Row (tr)
idname
Table Cell (td)

isXMLName

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
isXMLName
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns true if the given name can be used as a valid name for an XML element or attribute.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} name
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
application.output(isXMLName("good_name")); // prints: true
application.output(isXMLName("bad name")); // because of the space, prints: false
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idparseFloat-String
Table Row (tr)
idname
Table Cell (td)

parseFloat

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
parseFloat
Span
(text)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Makes a floating point number from the starting numbers in a given string.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} text
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
parseFloat('string')
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idparseInt-String
Table Row (tr)
idname
Table Cell (td)

parseInt

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
parseInt
Span
(text)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Makes a integer from the starting numbers in a given string in the base specified.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} text
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
parseInt('0774')
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idparseInt-String_Number
Table Row (tr)
idname
Table Cell (td)

parseInt

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
parseInt
Span
(text, radix)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Makes a integer from the starting numbers in a given string in the base specified.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{String} text
{Number} radix
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
parseInt('0774' , 8)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
iduneval-Object
Table Row (tr)
idname
Table Cell (td)

uneval

Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
uneval
Span
(obj)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the string representation behind a given object.
Table Row (tr)
idprs
Table Cell (td)

Parameters

Div
classsIndent
{Object} obj
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
application.output(uneval(isNaN)); // prints something like: function isNaN() { [native code for isNaN, arity=1] }
Table Row (tr)
classlastDetailRow
Table Cell (td)