diff options
author | John Resig <jeresig@gmail.com> | 2007-09-08 12:42:32 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-09-08 12:42:32 +0000 |
commit | b4e23b5af0820a66c2e275051f613f3df9a4444d (patch) | |
tree | 8045667211e4aa393ee1b6e006dd0c953e77c963 /test/data/jsonp.php | |
parent | 13b66c8ba9618242df2c1cc352a2b1d879c36188 (diff) | |
download | jquery-b4e23b5af0820a66c2e275051f613f3df9a4444d.tar.gz jquery-b4e23b5af0820a66c2e275051f613f3df9a4444d.zip |
Reorganzing the jQuery source (first phase).
Diffstat (limited to 'test/data/jsonp.php')
-rw-r--r-- | test/data/jsonp.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/data/jsonp.php b/test/data/jsonp.php new file mode 100644 index 000000000..75000252b --- /dev/null +++ b/test/data/jsonp.php @@ -0,0 +1,10 @@ +<?php
+error_reporting(0);
+$callback = $_REQUEST['callback'];
+$json = $_REQUEST['json'];
+if($json) {
+ echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';
+} else {
+ echo $callback . '({ "data": {"lang": "en", "length": 25} })';
+}
+?>
|