Sajax

Provides both server and client-side methods for dealing with “Ajax”-type XMLHttp asynchronous queries.

Summary
Provides both server and client-side methods for dealing with “Ajax”-type XMLHttp asynchronous queries.
REQUEST_URI
Handle a client request for a function.
A string containing the appropriate Javascript needed to run the client.
Prints the common Javascript required to run the client.
Javascript-escape a value.
Export a list of functions for Sajax to serve or use as a client.
Get the Javascript

Functions

Sajax

function Sajax($remote_uri =  NULL)

Parameters

$remote_uri(optional) Specify different URI for the method to call.  Defaults to the current URI.

get_my_uri

function get_my_uri()

Returns

REQUEST_URI

handle_client_request

function handle_client_request()

Handle a client request for a function.

get_common_js

function get_common_js()

Returns

A string containing the appropriate Javascript needed to run the client.

show_common_js

function show_common_js()

Prints the common Javascript required to run the client.

See Also

get_common_js

esc

function esc($val)

Javascript-escape a value.

Parameters

$valOriginal value

Returns

Value escaped for Javascript string syntax.

export

function export()

Export a list of functions for Sajax to serve or use as a client.

Parameters

(variable)Variable number of strings containing the PHP function names of the functions to export.

get_javascript

function get_javascript()

Get the Javascript

Returns

Entire javascript for client.

function Sajax($remote_uri =  NULL)
function get_my_uri()
REQUEST_URI
function handle_client_request()
Handle a client request for a function.
function get_common_js()
A string containing the appropriate Javascript needed to run the client.
function show_common_js()
Prints the common Javascript required to run the client.
function esc($val)
Javascript-escape a value.
function export()
Export a list of functions for Sajax to serve or use as a client.
function get_javascript()
Get the Javascript