# Get Action

## Syntax

```
$.getAction = function (url, callback)
```

## Arguments

<table data-header-hidden><thead><tr><th width="152">Arguments</th><th width="137">Data Type</th><th width="308">Description</th><th>Default Value</th></tr></thead><tbody><tr><td><p><em>url</em></p><p> </p></td><td>String</td><td>URI of the action that should be loaded.</td><td> </td></tr><tr><td><p><em>callback</em></p><p> </p></td><td>function</td><td><p>Contains calls of Javascript functions that should be executed in series after receiving data from action specified in “url”.</p><p> </p></td><td> </td></tr></tbody></table>



## Description

Sends an HTTPGET request to the action of the URI specified in “url”. If it successfully receives return data from the Server, the callback function will be executed.

## Example

The following program illustrates the function call:

```
$.getAction("main/get", function () { alert("success"); }) 
```

Function sends request to the action “main/get”. When the function receives returned data from the Server, the “alert” function will output “success” on the screen.
