Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
<!--
{hidden}DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURC-->SOURCE{hidden}
\\ 

{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}[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 sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summery{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 sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summery{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#decodeURI]\()
Decodes a URI previously encoded with encodeURI or another similar routine.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#decodeURIComponent]\(encodedURI)
{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#encodeURI]\()
Encodes a URI by replacing certain characters with escape sequences.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#encodeURIComponent]\()
{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#eval]\()
Evaluates JavaScript code passed as a string.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isFinite]\()
Returns true if the given number is a finite number.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#isNaN]\()
The NaN property indicates that a value is 'Not a Number'.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isXMLName]\()
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}void{td}{td}[#parseFloat]\()
Makes a floating point number from the starting numbers in a given string.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#parseInt]\()
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]\()
Returns the string representation behind a given object.{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=Infinity|class=node}{tr:id=name}{td}h6.Infinity{td}{tr}{tr:id=des}{td}Numeric value representing infinity.{td}{tr}{tr:id=sncret}{td}*SinceReturns*\\ Replace with version info[Number]{td}{tr}{tr:id=prssam}{td}*ParametersSample*\\{tddiv:class=sIndent}{tr}{tr:id=ret}{td}*Returns*\\[Number]code:language=javascript}
Infinity
{code}{div}{td}{tr}{tr:idclass=seelastDetailRow}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tbody}{tbody:id=NaN|class=node}{tr:id=name}{td}h6.NaN{td}{tr}{tr:id=linkdes}{td}*External links*\\{div:class=sIndent}{div}Value representing Not\-a\-Number.{td}{tr}{tr:id=ret}{td}*Returns*\\ [Number]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
InfinityNaN
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NaNundefined|class=node}{tr:id=name}{td}h6.NaNundefined{td}{tr}{tr:id=des}{td}ValueThe representing Not\-a\-Numbervalue undefined.{td}{tr}{tr:id=sncret}{td}*SinceReturns*\\ Replace with version info[Object]{td}{tr}{tr:id=prssam}{td}*ParametersSample*\\{tddiv:class=sIndent}{tr}{tr:id=ret}{td}*Returns*\\[Number]code:language=javascript}
undefined
{code}{div}{td}{tr}{tr:idclass=seelastDetailRow}{td}*Also see*\\{div:class=sIndent{td}{divtr}{tdtbody}{trtable}\\ 

{trtable:id=link=function|class=servoy sDetail}{td}*External links*\\{div:class=sIndent}{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=undefinedcolgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=decodeURI|class=node}{tr:id=name}{td}h6.undefineddecodeURI{td}{tr}{tr:id=dessig}{td}The value undefined.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}decodeURI{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=prsdes}{td}*Parameters*\\Decodes a URI previously encoded with encodeURI or another similar routine.{td}{tr}{tr:id=ret}{td}*Returns*\\ [ObjectString]{td}{tr}{tr:id=seesam}{td}*Also seeSample*\\{div:class=sIndent}{code:language=javascript}

{code}{div}{td}{tr}{tr:idclass=linklastDetailRow}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{trtbody}{tbody:id=sam}{td}*Sample*\\{div:decodeURIComponent|class=sIndentnode}{codetr:language=javascript}
undefined
{codeid=name}{divtd}h6.decodeURIComponent{td}{tr}{tr:classid=lastDetailRowsig}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{thspan:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}decodeURIComponent{span}{span:id=iets|style=float: left;}\(encodedURI){span}{td}{tr}{tbodytr:id=decodeURI|class=nodedes}{td}Replace with description{td}{tr}{tr:id=nameprs}{td}h6.decodeURI*Parameters*\\ \{[String]} encodedURI
{td}{tr}{tr:id=sigret}{td}{span:style=float: left; margin-right: 5px;}*Returns*\\ [String]{spantd}{tr}{spantr:id=iets|style=float: left; font-weight: bold;}decodeURI{span}{span:id=iets|style=float: left;}\(){spansam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{trtbody}{tbody:id=desencodeURI|class=node}{td}Decodes a URI previously encoded with encodeURI or another similar routine.tr:id=name}{td}h6.encodeURI{td}{tr}{tr:id=sncsig}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}encodeURI{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=retdes}{td}*Returns*\\[String]Encodes a URI by replacing certain characters with escape sequences.{td}{tr}{tr:id=seeret}{td}*Also seeReturns*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{ [String]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=decodeURIComponentencodeURIComponent|class=node}{tr:id=name}{td}h6.decodeURIComponentencodeURIComponent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}decodeURIComponentencodeURIComponent{span}{span:id=iets|style=float: left;}\(encodedURI){span}{td}{tr}{tr:id=des}{td}Replace with description{td}{tr}{tr:id=sncret}{td}*SinceReturns*\\ Replace with version info[String]{td}{tr}{tr:id=prssam}{td}*ParametersSample*\\\{[String]{div:class=sIndent}{code:language=javascript}
encodedURI
{code}{div}{td}{tr}{tr:idclass=retlastDetailRow}{td}*Returns*\\[String]{td}{tr}{trtbody}{tbody:id=see}{td}*Also see*\\{div:class=sIndent}{div}eval|class=node}{tr:id=name}{td}h6.eval{td}{tr}{tr:id=linksig}{td}*External links*\\{div:class=sIndent}{div{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}eval{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=samdes}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

{code}{div}{Evaluates JavaScript code passed as a string. Returns the value returned by the evaluated code.{td}{tr}{tr:classid=lastDetailRowret}{td}*Returns*\\ [Object]{td}{tr}{tbody}{tbodytr:id=encodeURI|sam}{td}*Sample*\\{div:class=nodesIndent}{tr:id=name}{td}h6.encodeURIcode:language=javascript}
eval("var x = 2 + 3;");
application.output(x); // prints: 5.0
{code}{div}{td}{tr}{tr:idclass=siglastDetailRow}{td}{span:td}{tr}{tbody}{tbody:id=isFinite|class=node}{tr:id=name}{td}h6.isFinite{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[StringBoolean]{span}{span:id=iets|style=float: left; font-weight: bold;}encodeURIisFinite{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}EncodesReturns atrue URIif bythe replacinggiven certainnumber charactersis witha escapefinite sequencesnumber.{td}{tr}{tr:id=sncret}{td}*SinceReturns*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[String[Boolean]{td}{tr}{tr:id=seesam}{td}*Also seeSample*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=encodeURIComponent|class=node}{tr:id=name}{td}h6.encodeURIComponent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}encodeURIComponent{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Replace with description{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=eval|class=node}{tr:id=name}{td}h6.eval{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}eval{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Evaluates JavaScript code passed as a string. Returns the value returned by the evaluated code.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Object]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{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|class=node}{tr:id=name}{td}h6.isFinite{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isFinite{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Returns true if the given number is a finite number.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Boolean]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{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|class=node}{tr:id=name}{td}h6.isNaN{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}isNaN{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}The NaN property indicates that a value is 'Not a Number'.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\void{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{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|class=node}{tr:id=name}{td}h6.isXMLName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isXMLName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Returns true if the given name can be used as a valid name for an XML element or attribute.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Boolean]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{divcode: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}{trtbody}{tbody:id=link}{td}*External links*\\{div:class=sIndent}{div}isNaN|class=node}{tr:id=name}{td}h6.isNaN{td}{tr}{tr:id=samsig}{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{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}isNaN{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tbody}{tbody:id=parseFloat|class=node}{tr:id=namedes}{td}h6.parseFloatThe NaN property indicates that a value is 'Not a Number'.{td}{tr}{tr:id=sigret}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}parseFloat{span}{span:id=iets|style=float: left;}\(){span*Returns*\\void{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
isNaN( value )
{code}{div}{td}{tr}{tr:idclass=deslastDetailRow}{td}Makes a floating point number from the starting numbers in a given string.{td}{tr}{tbody}{tbody:id=isXMLName|class=node}{tr:id=sncname}{td}*Since*\\ Replace with version infoh6.isXMLName{td}{tr}{tr:id=prssig}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\void{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isXMLName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=seedes}{td}*Also see*\\{div:class=sIndent}{div}{Returns true if the given name can be used as a valid name for an XML element or attribute.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div}{ [Boolean]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
parseFloat('string')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=parseIntparseFloat|class=node}{tr:id=name}{td}h6.parseIntparseFloat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}parseIntparseFloat{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Makes a integerfloating point number from the starting numbers in a given string in the base specified.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{ in a given string.{td}{tr}{tr:id=ret}{td}*Returns*\\void{td}{tr}{tr:id=seesam}{td}*Also seeSample*\\{div:class=sIndent}{code:language=javascript}
parseFloat('string')
{code}{div}{td}{tr}{tr:id=linkclass=lastDetailRow}{td}{td}*External links*\\{div:class=sIndent}{div}}{tr}{tbody}{tbody:id=parseInt|class=node}{tr:id=name}{td}h6.parseInt{td}{tr}{tr:id=samsig}{td}*Sample*\\{divspan:class=sIndent}{code:language=javascript}
parseInt( 'string' [, base] )
{code}{div}{td}{tr}{tr:class=lastDetailRow}{tdstyle=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}parseInt{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tbody}{tbody:id=uneval|class=node}{tr:id=namedes}{td}h6.unevalMakes a integer from the starting numbers in a given string in the base specified.{td}{tr}{tr:id=sigret}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}uneval{span}{span:id=iets|style=float: left;}\(){span*Returns*\\void{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
parseInt( 'string' [, base] )
{code}{div}{td}{tr}{tr:idclass=deslastDetailRow}{td}Returns the string representation behind a given object.{td}{tr}{tbody}{tbody:id=uneval|class=node}{tr:id=sncname}{td}*Since*\\ Replace with version infoh6.uneval{td}{tr}{tr:id=prssig}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[String]{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}uneval{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=seedes}{td}*Also see*\\{div:class=sIndent}{div}{Returns the string representation behind a given object.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div} [String]{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}