addScriptCall("myJSFunction", "arg1", 9432.12, array("myKey" => "some value", "key2" => $value2)); return $response; } $xajax = new xajax(); //$xajax->debugOn(); $xajax->registerFunction("callScript"); $xajax->processRequests(); ?> addScriptCall Test | xajax Tests printJavascript("../") ?>

xajax Tests

addScriptCall Test

Howdy.

Result:

[blank]

Expecting:

arg1 and 9532.12
some value | this is a string