Nirav Mehta
"Mobile Web Development"
The
tag has two new attributes. The namelist attribute specifies fields
that should be populated to execute this code segment, the mode defines
whether all of those fields should be filled or any before the block gets executed.
When we talked about the $ shadow variable earlier, we did not mention that
it's possible to populate multiple fields from the grammar file. Here's that trick.
Something like this in our grammar file:
- something Size">]]>
And this in our VXML:
The pizza and interpretation variables act much like an object.
pizza and size selection become properties of that object.
One more trick is to evaluate expressions as needed to get their value. In our case, we
are evaluating the value of the pizza the user said and informing them in a .
We have stored the caller ID in an application variable customer. This is not really
required because we can access it from the session scope later.
Pages:
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233