From d895b852a6e160496ffc760d46d3719a3d62ff86 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Sun, 3 Feb 2008 23:23:24 +0000 Subject: Initial checkin of nutridb.org and basic subversion directory structure --- lib/xajax_0.2.4/tests/scriptCallTest.php | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lib/xajax_0.2.4/tests/scriptCallTest.php (limited to 'lib/xajax_0.2.4/tests/scriptCallTest.php') diff --git a/lib/xajax_0.2.4/tests/scriptCallTest.php b/lib/xajax_0.2.4/tests/scriptCallTest.php new file mode 100644 index 0000000..ccbd250 --- /dev/null +++ b/lib/xajax_0.2.4/tests/scriptCallTest.php @@ -0,0 +1,50 @@ +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
+ + + -- cgit v1.2.3