SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 218 | Next

Nirav Mehta

"Mobile Web Development"

We can write a
tag like to assign the grammar interpretation of the pizza field to the applicationlevel
variable pizza.
$ is a special shadow variable that stores details of the pizza interpretation.
interpretation.pizza refers to the value assigned to pizza field from grammar.
The shadow variable can also tell you the confidence in speech recognition and the
way the word was uttered. But let's stay on our job for now!
Detecting the Caller's Phone Number
If we want to take an order, we need to know who ordered it! How will we do that?
If we can find the caller's phone number, we can obtain the rest of the details from
our existing customer database, or call her or him up and find out the address. Caller
ID is very critical to any telephony provider (how will they bill them otherwise?), so
we can easily get the caller's phone number.
It will be available in the session.callerid variable throughout our application.
And as it goes, even the number they called will be available in the session.
calledid variable!
Time for Action: Let's Put It All Together
Let's put what we have learned about application variables, caller ID, and pizza
grammar in code now.


Pages:
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6