]> git.pond.sub.org Git - eow/blobdiff - static/dojo-release-1.1.1/dojox/rpc/tests/resources/jsonpEcho.php
add Dojo 1.1.1
[eow] / static / dojo-release-1.1.1 / dojox / rpc / tests / resources / jsonpEcho.php
diff --git a/static/dojo-release-1.1.1/dojox/rpc/tests/resources/jsonpEcho.php b/static/dojo-release-1.1.1/dojox/rpc/tests/resources/jsonpEcho.php
new file mode 100644 (file)
index 0000000..15d9aaa
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+       $jsonp = false;
+       $result = "";
+
+       if ($_REQUEST["testCallbackParam"]){
+               $jsonp=true;
+               $result .= $_REQUEST['testCallbackParam'] . "('";
+       }
+
+       if (!$_REQUEST["message"]){
+               $result .= "ERROR: message property not found";
+       }
+
+       $result .= $_REQUEST["message"];
+
+       if ($jsonp) {
+               $result .= "');";
+       }
+
+       print $result;
+
+
+?>