sent Attribute
Specifies the text of the message to be sent to the Speech Platform component.
HTML | <smex sent="msgText"> |
JScript | smex.sent = msgText |
Remarks
Whenever the sent attribute receives a non-null value, its contents are sent to the Speech Platform.
Example
The following code demonstrates the use of the sent attribute.
<html>
<smex id="mySmex" onreceive="onSmexReceive()" onerror="onSmexError()" ontimeout="onSmexTimeout()" timer="-1"/>
<body onload="bodyLoad()">
<script>
//<![CDATA[
function bodyLoad() {
LogMessage("bodyLoad(): Sending MonitorStart request...");
mySmex.sent = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<MonitorStart xmlns=\"http://www.ecma.ch/standards/ecma-323/csta/ed2\">
<monitorObject><deviceObject>" + deviceID + "</deviceObject></monitorObject></MonitorStart>";
}
//]]>
</script>
</body>
</html>