<subdialog>

<subdialog>

Subdialogs are a mechanism for reusing common dialogs and building libraries of reusable applications.

Attributes

Notes

Exactly one of “src” and “srcexpr” must be specified.

When setting the “method” attribute to “post”, the platform does a normal POST with the variables passed in the namelist encoded as “application/x-www-form-urlencoded” or “multipart/form-data”. After encoding the namelist, the platform passes the data and tells the server that the data is encoded with whatever format it used to encode.

However, when setting the “method” attribute to “raw”, the “raw” type is still a POST request, but does two things to change the default behavior, allowing control over both the data and the encoding type reported to the server:

  1. Rather than encoding the namelist to create the “data”, the platform instead executes the rawexpr javascript expression and uses the result for the data.

  2. It passes the encoding that was provided in the “enctype” attribute as the encoding to the web server.

Example

<?xml version="1.0"?>
<vxml version="2.1">
  <form>
    <subdialog name="blah" src="subdialog.php"/>
    <block>
      Hello <value expr="blah.stuff"/>.
    </block>
  </form>
</vxml>

The output of the above script would be:

Computer: Hello World.

Child Tags

<audio>, <catch>, <enumerate>, <error>, <filled>, <help>, <noinput>, <nomatch>, <param>, <prompt>, <property>, <value>

Parent Tags

<form>

Last updated