no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | developer_guide:voicexml_references:elements:script [2015/10/27 21:44] (current) – created borja | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== < script > ====== | ||
+ | ===== Description ===== | ||
+ | |||
+ | The < | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | < | ||
+ | <script | ||
+ | src=" | ||
+ | charset=" | ||
+ | fetchhint=" | ||
+ | fetchtimeout=" | ||
+ | maxage=" | ||
+ | maxstale=" | ||
+ | Script Text | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Attributes ===== | ||
+ | |||
+ | |src|The src attribute is the URI specifying the location of the external script. This attribute is optional.| | ||
+ | |charset|The charset attribute is character encoding if external script is used. This attribute is optional.| | ||
+ | |fetchtimeout|The fetchtimeout attribute is the time interval to wait for audio file to be fetched before playing the alternate content. This attribute is optional.| | ||
+ | |fetchhint|The fetchhint defines when the audio file should be retrieved. This attribute is optional. \\ * prefetch – the audio file may be downloaded when the page is loaded. \\ * safe – the audio file loads only when needed.| | ||
+ | |maxage|The maxage attribute indicates the maximum time in seconds that this document will use this script file before fetching another copy. This attribute is optional.| | ||
+ | |maxstale|The maxstale attribute indicates the maximum time in seconds that this document will use a script file that has exceeded the maxage time. This attribute is optional.| | ||
+ | |||
+ | ===== Parents ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Children ===== | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Extensions ===== | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Limitations/ | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Example Code ===== | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | <vxml version=" | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | // no need to escape the following less than sign | ||
+ | | ||
+ | } | ||
+ | | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | Hello | ||
+ | </ | ||
+ | <prompt cond=" | ||
+ | I am always here | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | NOTE: | ||
+ | |||
+ | It is wise to put CDATA escapes around your scripts so you don't have to escape XML reserved characters (eg. <, >, &, etc). |