Elgg  Version 2.2
Usage

Perform an action via ajax 1: At its simplest, only the action name is required (and anything more than the action name will be invalid).

elgg.action('name/of/action');

The action can be relative to the current site ('name/of/action') or the full URL of the action ('http://elgg.org/action/name/of/action').