Get Action

Syntax

$.getAction = function (url, callback)

Arguments

url

String

URI of the action that should be loaded.

callback

function

Contains calls of Javascript functions that should be executed in series after receiving data from action specified in “url”.

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