JavaScript

The table below details the features from JavaScript standards that are supported and not supported in the current release of M-Business Client. For each object listed, supported and non-supported features are indicated as follows.

  • Bold text (e.g., Button object): standard JavaScript feature supported by M-Business JavaScript engine

  • Plain text (e.g., Anchor object): standard JavaScript feature not supported by M-Business JavaScript engine

    Note

    Where M-Business JavaScript engine does not support a standard JavaScript object, the table below does not list the individual properties, methods, and event handlers from that object.

The Standard column in the table below indicates the specific standard in which the M-Business Sync Server supported JavaScript object is defined:

  • DOM 0 is client-side JavaScript specified in the standard called DOM Level 0 API.

  • ECMA is core JavaScript specified in ECMA-262, 3rd Edition.

  • W3C DOM is document object model features specified in the W3C DOM 1.0+ standards.

Table 4. Supported features from standard JavaScript

Object

Standard

Properties

Methods

Event Handlers

Anchor 

DOM 0

Applet

DOM 0

Area

DOM 0

Arguments

ECMA

callee
length

N/A

N/A

Array

ECMA

length
prototype
concat
join
pop
push
reverse
shift
slice
sort
splice
toLocaleString
toString
unshift

N/A

Attr

DOM 0

name
specified
value

N/A

N/A

Boolean

ECMA

N/A

toString
valueOf

N/A

Button

DOM 0

form
name
type
value
blur
click
focus
onblur
onclick
ondblclick
onfocus
onkeydown
onkeypress
onkeyup
onmousedown
onmouseup
Checkbox

DOM 0

checked
defaultChecked
form
name
type
value
blur
click
focus
onblur
onclick
ondblclick
onfocus
onkeydown
onkeypress
onkeyup
onmousedown
onmouseup
Date

ECMA

N/A

Note: in the Date methods to the right, [UTC] indicates that two methods exist, one for local time (for example, getDate ) and one for UTC time (for example, getUTCDate ).

get[UTC]Date
get[UTC]Day
get[UTC]FullYear
get[UTC]Hours
get[UTC]Milliseconds
get[UTC]Minutes
get[UTC]Month
get[UTC]Seconds
getTime
getTimeZoneOffset
getYear
set[UTC]Date
set[UTC]FullYear
set[UTC]Hours
set[UTC]Milliseconds
set[UTC]Minutes
set[UTC]Month
set[UTC]Seconds
setTime
setYear
toDateString
toGMTString
toLocaleDateString
toLocaleString
toLocaleTimeString
toString
toTimeString
toUTCString
valueOf
parse
UTC

N/A

document

See Example: setting forms property attributes and Example: working around innerText and document.write

DOM 0

alinkColor
anchors
applets
bgColor
classes
cookie
domain
embeds
fgColor
formName
forms
ids
images
lastModified
layers
linkColor
links
plugins
referrer
title
URL
vlinkColor
captureEvents
close
contextual
getSelection
handleEvent
open
releaseEvents
routeEvent
write
writeln

N/A

event

W3C DOM

altKey
clientX
clientY
ctrlKey
data
height
keyVal
layerX
layerY
modifiers
pageX
pageY
screenX
screenY
shiftKey
target
type
which
width

N/A

N/A

Error

ECMA

message
name
toString

N/A

EvalError

ECMA

FileUpload

DOM 0

Form

DOM 0

action
elements
encoding
length
method
name
target
reset
submit
onreset
onsubmit
Frame

DOM 0

Frameset

DOM 0

Function

ECMA

Global

ECMA

Infinity
NaN
undefined
decodeURI
decodeURIComponent
encodeURI
encodeURIComponent
escape
eval
isFinite
isNaN
parseFloat
parseInt
unescape

N/A

Hidden

DOM 0

form
name
type
value

N/A

N/A

History

DOM 0

current
length
next
previous
back
forward
go

N/A

Image

DOM 0

border
complete
height
hspace
lowsrc
name
src
vspace
width

N/A

N/A

java

DOM 0

JavaArray

DOM 0

JavaClass

DOM 0

JavaObject

DOM 0

JavaPackage

DOM 0

Layer

DOM 0

Link

DOM 0

Location

DOM 0

hash
host
hostname
href
pathname
port
protocol
search
reload
replace

N/A

Math

ECMA

E
LN10
LN2
LOG2E
LOG10E
PI
SQRT1_2
SQRT2
abs
acos
asin
atan
atan2
ceil
cos
exp
floor
log
max
min
pow
random
round
sin
sqrt
tan

N/A

MimeType

DOM 0

navigator

DOM 0

appCodeName
appName
appVersion
language
mimeTypes
platform
plugins
userAgent
javaEnabled
plugins.refresh
preference
savePreferences
taintEnabled

N/A

netscape

DOM 0

Number

ECMA

MAX_VALUE
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY
toExponential
toFixed
toLocaleString
toPrecision
toString

N/A

Object

ECMA

constructor
hasOwnProperty
isPrototypeOf
propertyIsEnumerable
toLocaleString
toString
valueOf

N/A

Option

DOM 0

defaultSelected
form
index
label
length
selected
text
value

N/A

N/A

Packages

DOM 0

Password

DOM 0

defaultValue
form
name
type
value
blur
focus
select
onblur
onfocus
Plugin

DOM 0

Radio

DOM 0

checked
defaultChecked
form
name
type
value
blur
click
focus
onblur
onclick
onfocus
RangeError

ECMA

message
name

N/A

N/A

ReferenceError

ECMA

message
name

N/A

N/A

RegExp

ECMA

global
ignoreCase
lastIndex
multiline
source
exec
test
toString

N/A

Reset

DOM 0

form
name
type
value
blur
click
focus
onblur
onclick
onfocus
screen

DOM 0

availHeight
availLeft
availTop
availWidth
colorDepth
height
pixelDepth
width

N/A

N/A

 Select 

DOM 0

form 
length 
name 
options 
selectedIndex 
type
blur 
focus
onblur 
onchange 
onfocus
String

ECMA

length
charAt 
charCodeAt 
concat 
fromCharCode 
indexOf
lastIndexOf 
localeCompare 
match 
replace
search 
slice 
split 
substring 
substr 
toLocaleLowerCase 
toLocaleUpperCase 
toLowerCase 
toString 
toUpperCase 
valueOf

N/A

Style

DOM 0

Submit

DOM 0

form 
name 
type 
value
blur 
click 
focus
onblur 
onclick 
onfocus
sun

DOM 0

SyntaxError

ECMA

message 
name

N/A

N/A

Text

DOM 0

defaultValue 
form 
name 
type 
value
blur 
focus 
select
onblur 
onchange 
onfocus 
onselect

TextArea

DOM 0

defaultValue 
form 
name 
type 
value
blur 
focus 
select
onblur 
onchange 
onfocus 
onkeydown 
onkeypress 
onkeyup 
onselect
TypeError

ECMA

message 
name

N/A

N/A

URIError

ECMA

window

DOM 0

closed 
crypto 
defaultStatus
document 
frames 
history 
innerHeight 
innerWidth 
length 
location 
locationbar 
menubar 
name 
offscreenBuffering 
opener 
outerHeight 
outerWidth 
pageXOffset 
pageYOffset 
parent 
personalbar 
screenX 
screenY 
scrollbars 
self 
status 
statusbar 
toolbar 
top 
window
alert 
atob 
back 
blur 
btoa 
captureEvents 
clearInterval 
clearTimeout 
close 
confirm 
crypto.random 
crypto.signText 
disableExternalCapture 
enableExternalCapture 
find 
focus 
forward 
handleEvent 
home 
moveBy 
moveTo 
open 
print 
prompt 
releaseEvents 
resizeBy 
resizeTo 
routeEvent 
scroll 
scrollBy 
scrollTo 
setHotKeys 
setInterval 
setResizable 
setTimeout 
setZOptions 
stop 
onblur 
ondragdrop 
onerror 
onfocus 
onload 
onmove 
onresize 
onunload

Example: setting forms property attributes
Example: working around innerText and document.write