<bookmark ...> element


The bookmark element does not exist in the SALT dtd, however it is used to determine the semantics of a user response in terms of the timing of the bargein during the prompt output. See section 2.6.2.2 in the SALT 1.0 Specs for more information.


Attributes

any (usually defined as a global variable within scripting)

Children

none

Parents

Properties

none

Methods

none

Example

<script><![CDATA[
    var mark;
    function interrupt() {
        mark = event.srcElement.bookmark;
    }
    function ProcessCityConfirm() {
        PromptQueue.stop(); // flush the audio buffer
        if (mark == "mark_origin_city")
            txtBoxOrigin.value = event.srcElement.value;
        else
            txtBoxDest.value = event.srcElement.value;
    }
]]></script>

<body xmlns:salt="http://www.saltforum.org/2002/SALT"
        onload="pConfirm.Start();lConfirm.Start();">
...
    <input name="txtBoxOrigin" value="Seattle" type="text" />
    <input name="txtBoxDest" type="text" />
...
    <salt:prompt id="pConfirm" onbargein="interrupt()" bargein="true">
        From <bookmark mark="mark_origin_city" />
        <value targetelement="txtBoxOrigin" targetattribute="value" />,
        please say <bookmark mark="mark_dest_city" /> the
        destination city you want to travel to.
    </salt:prompt>

     <salt:listen id="lConfirm" onreco="ProcessCityConfirm()" >
        <salt:grammar src="/grm/1033/cities.grxml" />
     </salt:listen>
...
</body>

 

Extra info

For details on usage of this element, see the SALT Specification, Version 1.0.