Get Action

Syntax

$.getAction = function (url, callback)

Arguments

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.

Last updated