object

<object>

This element allows the programmers to call platform specific functionality that resides in the VoiceXML interpreter itself. In  10 () specified, under <param> element within the <object> the attribute ‘type’ is set to “set” and “get”. Set updates the value of the variable specified under “name” in the asterisk and if the variable is not declared already then it creates one on its own while “get” is used to collect the value of the variable from the asterisk. These are similar to set and get functions of Asterisk that are used to populate variables.

 Attributes:

archive

It is the list of URI’s used by the object.

classid

It is the URI of the object’s implementation.

codebase

It is the base URI used to resolve all other relative URIs specified in class, data and archive. Default is the base URI of the current document.

codetype

It specifies the type of data stored at the URI in classid.

cond

A boolean which must evaluate to true for the contents of object to be executed.

data

URI of data used by the object. For  it may contain pre-recorded audio files that can be used to prompt the user for acquiring information.

expr

An ECMAScript expression containing the initial value of this item.

fetchhint

It can have two values ‘safe’ and ‘prefetch’. Prefetch tells platform to fetch the document specified by ‘next’ in advance before it is actually needed while safe downloads only while executing the document.

fetchtimeout

Interval of time to wait for before throwing an “error.badfetch” event. It is platform dependent.

maxage

An integer value that indicates the maximum allowable age of the fetched documents in seconds. If the cached copy is older than the maxage value then a new copy will be fetched.

maxstale

An integer value which is added to the maxage and the resultant integer value indicates the maximum value in seconds, a stale content of the element can have after which it becomes invalid and can no longer be used.

name

It is the name associated with this form item. The values produced as a result of the user‘s utterance will be stored in a variable of this name.

type

The data type of contents in the URI specified with data attribute.

parent

form

children

PCDATA, audio, catch, enumerate, error, filled, help, noinput, nomatch, param, prompt, property, value.