Web Expression Language

Web Expression Language

The Web Expression Language turns standard HTML elements into dynamic RIA components. It integrates the three major RIA programming tasks: event handling, DOM manipulation and Ajax. The Web Expression Language is used by adding an on attribute to an HTML element - no Javascript required! Here’s the syntax for the Web Expression Language:

on="[condition] then [action]"

Conditions can be Appcelerator messages or a set of pre-defined conditions like:

  • click
  • focus
  • blur
  • change
  • keyup

These are just a few of the pre-defined conditions - see our Reference Guide for a full list of supported conditions. Actions can also be Appcelerator messages or a set of pre-defined actions like:

  • effect[effectName]
  • value
  • hide
  • show
  • toggle[display]

Once again, these are just a few of the pre-defined actions - see our Reference Guide for a full list of supported actions.

The Web Expression Language makes programming RIAs easy and fun.

Web Expression Language Reference