Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{div:style=display: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} {div:id=description}{div}\\ {table:id=|class=servoy sReturnTypes}{tr:style=height: 30px;}{th}Return Types{th}{tr}{tr}{td}{span:class=sWordList}[Array]{span}{span:class=sWordList}[Boolean]{span}{span:class=sWordList}[Date]{span}{span:class=sWordList}[Function]{span}{span:class=sWordList}[JSON]{span}{span:class=sWordList}[Math]{span}{span:class=sWordList}[Namespace]{span}{span:class=sWordList}[Number]{span}{span:class=sWordList}[Object]{span}{span:class=sWordList}[QName]{span}{span:class=sWordList}[RegExp]{span}{span:class=sWordList}[Special Operators]{span}{span:class=sWordList}[Statements]{span}{span:class=sWordList}[String]{span}{span:class=sWordList}[XML]{span}{span:class=sWordList}[XMLList]{span}{td}{tr}{table}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#Infinity] Numeric value representing infinity.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#NaN] Value representing Not\-a\-Number.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#undefined] The value undefined.{td}{tr}{tbody}{table}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#decodeURI]\(encodedURI) Decodes a URI previously encoded with encodeURI or another similar routine.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#decodeURIComponent]\(encodedURI) Decodes a URI component previously created by encodeURIComponent or by a similar routine.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#encodeURI]\(URI) Encodes a URI by replacing certain characters with escape sequences.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#encodeURIComponent]\(URI) Encodes a URI component by replacing all special characters with their corresponding UTF\-8 escape sequences.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#eval]\(expression) Evaluates JavaScript code passed as a string.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isFinite]\(n) Returns true if the given number is a finite number.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#isNaN]\(value) The NaN property indicates that a value is 'Not a Number'.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isXMLName]\(name) Returns true if the given name can be used as a valid name for an XML element or attribute.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#parseFloat]\(text) Makes a floating point number from the starting numbers in a given string.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#parseInt]\(text) Makes a integer from the starting numbers in a given string in the base specified.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#parseInt]\(text, radix) Makes a integer from the starting numbers in a given string in the base specified.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#uneval]\(obj) Returns the string representation behind a given object.{td}{tr}{tbody}{table}\\ {table:id=property|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=Infinity}{tr:id=name}{td}h6.Infinity{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Infinity {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NaN}{tr:id=name}{td}h6.NaN{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} NaN {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=undefined}{tr:id=name}{td}h6.undefined{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Object]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} undefined {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=decodeURI-String}{tr:id=name}{td}h6.decodeURI{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}decodeURI{span}{span}\(encodedURI){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} encodedURI {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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] {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=decodeURIComponent-String}{tr:id=name}{td}h6.decodeURIComponent{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}decodeURIComponent{span}{span}\(encodedURI){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} encodedURI {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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] {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=encodeURI-String}{tr:id=name}{td}h6.encodeURI{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}encodeURI{span}{span}\(URI){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} URI {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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] {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=encodeURIComponent-String}{tr:id=name}{td}h6.encodeURIComponent{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}encodeURIComponent{span}{span}\(URI){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} URI {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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] {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=eval-String}{tr:id=name}{td}h6.eval{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Object]{span}{span:style=font-weight: bold;}eval{span}{span}\(expression){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} expression {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Object]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} eval("var x = 2 + 3;"); application.output(x); // prints: 5.0 {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isFinite-Number}{tr:id=name}{td}h6.isFinite{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}isFinite{span}{span}\(n){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} n {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} application.output(isFinite(1)); // prints: true application.output(isFinite(Infinity)); // prints: false application.output(isFinite(isNaN)); // prints: false {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isNaN-Object}{tr:id=name}{td}h6.isNaN{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}isNaN{span}{span}\(value){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} value {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} isNaN( value ) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isXMLName-String}{tr:id=name}{td}h6.isXMLName{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}isXMLName{span}{span}\(name){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} application.output(isXMLName("good_name")); // prints: true application.output(isXMLName("bad name")); // because of the space, prints: false {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=parseFloat-String}{tr:id=name}{td}h6.parseFloat{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}parseFloat{span}{span}\(text){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} text {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} parseFloat('string') {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=parseInt-String}{tr:id=name}{td}h6.parseInt{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}parseInt{span}{span}\(text){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} text {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} parseInt('0774') {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=parseInt-String_Number}{tr:id=name}{td}h6.parseInt{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}parseInt{span}{span}\(text, radix){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} text \{[Number]} radix {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} parseInt('0774' , 8) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=uneval-Object}{tr:id=name}{td}h6.uneval{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}uneval{span}{span}\(obj){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} obj {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} application.output(uneval(isNaN)); // prints something like: function isNaN() { [native code for isNaN, arity=1] } {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Property SummaryNumeric value representing infinity.Value representing Not-a-Number.The value undefined.

servoy sSummary12%30%58%height: 30px;3Methods SummaryDecodes a URI previously encoded with encodeURI or another similar routine.Decodes a URI component previously created by encodeURIComponent or by a similar routine.Encodes a URI by replacing certain characters with escape sequences.Encodes a URI component by replacing all special characters with their corresponding UTF-8 escape sequences.Evaluates JavaScript code passed as a string.Returns true if the given number is a finite number.voidThe NaN property indicates that a value is 'Not a Number'.Returns true if the given name can be used as a valid name for an XML element or attribute.Makes a floating point number from the starting numbers in a given string.Makes a integer from the starting numbers in a given string in the base specified.Makes a integer from the starting numbers in a given string in the base specified.Returns the string representation behind a given object.

propertyservoy sDetail2100%height:30px2Property DetailsInfinityname

Infinity

dessIndent
Numeric value representing infinity.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRowNaNname

NaN

dessIndent
Value representing Not-a-Number.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
undefinedname

undefined

dessIndent
The value undefined.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow

functionservoy sDetail2100%height:30px2Methods DetailsdecodeURIname

decodeURI(encodedURI)

dessIndent
Decodes a URI previously encoded with encodeURI or another similar routine.
prs

Parameters

sIndentencodedURI ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRowdecodeURIComponentname

decodeURIComponent(encodedURI)

dessIndent
Decodes a URI component previously created by encodeURIComponent or by a similar routine.
prs

Parameters

sIndentencodedURI ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
encodeURIname

encodeURI(URI)

dessIndent
Encodes a URI by replacing certain characters with escape sequences.
prs

Parameters

sIndentURI ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
encodeURIComponentname

encodeURIComponent(URI)

dessIndent
Encodes a URI component by replacing all special characters with their corresponding UTF-8 escape sequences.
prs

Parameters

sIndentURI ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
evalname

eval(expression)

dessIndent
Evaluates JavaScript code passed as a string. Returns the value returned by the evaluated code.
prs

Parameters

sIndentexpression ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
isFinitename

isFinite(n)

dessIndent
Returns true if the given number is a finite number.
prs

Parameters

sIndentn ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
isNaNname

isNaN(value)

dessIndent
The NaN property indicates that a value is 'Not a Number'.
prs

Parameters

sIndentvalue ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
isXMLNamename

isXMLName(name)

dessIndent
Returns true if the given name can be used as a valid name for an XML element or attribute.
prs

Parameters

sIndentname ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
parseFloatname

parseFloat(text)

dessIndent
Makes a floating point number from the starting numbers in a given string.
prs

Parameters

sIndenttext ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
parseIntname

parseInt(text)

dessIndent
Makes a integer from the starting numbers in a given string in the base specified.
prs

Parameters

sIndenttext ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
parseIntname

parseInt(text, radix)

dessIndent
Makes a integer from the starting numbers in a given string in the base specified.
prs

Parameters

sIndenttext ;radix ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
unevalname

uneval(obj)

dessIndent
Returns the string representation behind a given object.
prs

Parameters

sIndentobj ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow