O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. ECMAScript overview

ECMAScript, an offshoot of JavaScript, is a lightweight scripting language. It was originally designed to allow Web designers to author simple client-side code to be executed in a Web browser. This code typically manipulated objects in an HTML document based on user events - for example, changing the image on a button when the user rolled the mouse over it.

Instead of reinventing the wheel, the VoiceXML committee decided to use ECMAScript wherever scripting was needed. Some examples are:

script elements

These are blocks of ECMAScript to be executed by the VoiceXML interpreter.

if and elseif conditions

The cond attribute of the if and elseif elements contains an ECMAScript expression that evaluates to a boolean. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required