US: 800.995.PLUM UK: 0845.355.3330
US: 800.995.PLUM UK: 0845.355.3330
from the Plum Voice IVR Glossary
The data element allows a VoiceXML application to fetch arbitrary XML data from a document server without transitioning to a new VoiceXML document. The XML data fetched by the data element is bound to ECMAScript through the named variable that exposes a read only subset of the W3C Document Object Model (DOM). The attributes for this property are as follows. The src attribute represents the URI specifying the location of the XML data to retrieve. The name attribute is the name of the variable that exposes the DOM. The srcexpr attribute is like the src attribute, except that the URI is dynamically determined by evaluating the given ECMAScript expression when the data needs to be fetched. If srcexpr cannot be evaluated, an error.semantic event is thrown. The method indicates the request method for either GET or POST. The namelist attribute represents the list of variables to submit. The default behavior is to submit no variables. Enctype is the attribute that specifies the HTTP POST encoding format. The other permissible choice is "multipart/form-data", which is the encoding method used by the platform when binary data is being submitted. The fetchaudio attribute is the URI of the audio clip to play while the fetch is being done. The fetchtimeout attribute specifies the timeout for fetches. This must be specified with the appropriate time units. The maxage attribute tells the platform the maximum acceptable age, in seconds, of cached documents. The maxstale attribute tells the platform the maximum acceptable staleness, in seconds of expired cached documents. In this element, exactly one of "src" and "srcexpr" must be specified.
| © 2010 The Plum Group, Inc. |