summaryrefslogtreecommitdiff
path: root/includes/js/dojox/rpc/tests/resources/jsonpEcho.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/js/dojox/rpc/tests/resources/jsonpEcho.php')
-rw-r--r--includes/js/dojox/rpc/tests/resources/jsonpEcho.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/includes/js/dojox/rpc/tests/resources/jsonpEcho.php b/includes/js/dojox/rpc/tests/resources/jsonpEcho.php
new file mode 100644
index 0000000..15d9aaa
--- /dev/null
+++ b/includes/js/dojox/rpc/tests/resources/jsonpEcho.php
@@ -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;
+
+
+?>