API DOCS

DOCS & TUTORIALS » API DOCS » xajax_js » xajax_core_uncompressed.js » xajax.js » xajax.js.makeWrapper

Function: xajax.js.makeWrapper


xajax.js.makeWrapper = function(origFun, args, codeBlocks, returnVariable, context) { }

Parameters:

origFun
(string) The name of the original function.

args
(string) The list of parameters used when calling the function.

codeBlocks
(array) Array of strings of javascript code to be executed before, after and perhaps between calls to the original function.

returnVariable
(string) The name of the variable used to retain the return value from the call to the original function.

context
(object) The current script context object which is accessable in the function name and body via the 'this' keyword.

Returns:

object - The complete wrapper function.
 



XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional