Revision as of 17:15, June 16, 2016 by Sschlich (talk | contribs) (Created page with "= Correction to ECMAScript variable in the <submit> tag= In vxml Ref document for submit tag When submitting ECMAScript objects in the namelist, the object will be flattened...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Correction to ECMAScript variable in the <submit> tag

In vxml Ref document for submit tag When submitting ECMAScript objects in the namelist, the object will be flattened (all the object's properties will be submitted separately). For example, if object o has two properties, p1 and p2, such that o.p1="value1" and o.p2="value2", and the following transition is made:

  <submit next="test.jsp" namelist="o" ...>

the HTTP request will contain o.p1=value1&o.p2=value2. Remember to retrieve the properties separately (as o.p1 and o.p2) in the server-side code used to generate the next page. please remove the above sentences and add below When an ECMAScript variable is submitted to the server its value is first converted into a string before being submitted. If the variable is an ECMAScript Object, its value would take on the ECMAScript string “[object]”. For example, if object o has two properties, p1 and p2, such that o.p1="value1" and o.p2="value2", and it should be submitted separately as o.p1 & 0.p2 <submit next="test.jsp" namelist="o.p1 o.p2" >

Comments or questions about this documentation? Contact us for support!