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:submit [2015/10/27 21:45] (current) – created borja | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== < submit > ====== | ||
+ | ===== Description ===== | ||
+ | |||
+ | The < | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | < | ||
+ | <submit | ||
+ | next=" | ||
+ | expr=" | ||
+ | namelist=" | ||
+ | method=" | ||
+ | enctype=" | ||
+ | fetchaudio=" | ||
+ | fetchhint=" | ||
+ | fetchtimeout=" | ||
+ | maxage=" | ||
+ | maxstale=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Attributes ===== | ||
+ | |||
+ | |next|The next attribute is the URI to which the query is submitted. This attribute is required - specifically either next or expr is required.| | ||
+ | |expr|The expr attribute is an expression that yields the URI. This attribute is required - specifically either next or expr is required.| | ||
+ | |namelist|The namelist attribute is a space-separated list of variables to submit. This attribute is optional and defaults to nothing.| | ||
+ | |method|The method attribute specifies the query request method, get or post. This attribute is optional and defaults to get.| | ||
+ | |enctype|The enctype attribute is MIME encoding of the document. This attribute is optional and defaults to application/ | ||
+ | |fetchaudio|The fetchaudio attribute is the URI of the audio to play while waiting for the next document to be fetched.| | ||
+ | |fetchhint|The fetchhint defines when the audio file should be retrieved. | ||
+ | |maxage|The maxage attribute indicates the maximum time in seconds that this document will use this 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 file that exceeded the maxage time. This attribute is optional.| | ||
+ | |||
+ | ===== Parents ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Children ===== | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Extensions ===== | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Limitations/ | ||
+ | |||
+ | < | ||
+ | The attribute fetchhint = prefetch is not supported, and is optional in VoiceXML. | ||
+ | </ | ||
+ | |||
+ | ===== Example Code ===== | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | <vxml version=" | ||
+ | < | ||
+ | <grammar src=" | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | <initial name=" | ||
+ | < | ||
+ | < | ||
+ | Please say something like this, | ||
+ | "from Toronto Ontario to Ottawa Ontario" | ||
+ | </ | ||
+ | < | ||
+ | I'm sorry, I still don't understand. | ||
+ | I'll ask you for information one piece at a time. | ||
+ | <assign name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | <field name=" | ||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | </ | ||
+ | <field name=" | ||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ |