Page 1 of 1

More info on <tag> tag

Posted: Tue Apr 04, 2006 2:05 pm
by kmanley
Hi could you provide a bit more information and perhaps an example of how to use the <tag/> tag in SRGS grammars. There doesn't seem to be any info on this in the docs.

Specifically I'm looking for ways to include ECMAScript in the grammar so that I can add properties to the result object returned to the <filled/> tag. I've tried using $ to represent the result object but it doesn't seem to work.

Thanks,
Kevin

Posted: Tue Apr 04, 2006 5:39 pm
by support
If I understand your question correctly, you're attempting to create member variables for the result object returned to the <filled> block. This is not possible with <tag>. <tag> tags are used for mixed initiative applications. Instead, use a <script> block within your <filled> block if you wish to run arbitrary ECMAscript code in response to data entered by a caller.

However, if you are still interested, you can find one example of how <tag> can be used here:
http://support.plumgroup.com/viewtopic.php?p=927#927. However it should be noted that mixed initiative VoiceXML applications are difficult to write and often confusing for callers to use.