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