diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/test/data/jsonp.php | 10 | ||||
-rw-r--r-- | build/test/index.html | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/build/test/data/jsonp.php b/build/test/data/jsonp.php new file mode 100644 index 000000000..75000252b --- /dev/null +++ b/build/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} })';
+}
+?>
diff --git a/build/test/index.html b/build/test/index.html index 6956cb902..3b59b0e79 100644 --- a/build/test/index.html +++ b/build/test/index.html @@ -41,11 +41,11 @@ <form id="form" action="formaction"> <input type="text" name="action" value="Test" id="text1"/> <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/> - <input type="radio" name="radio1" id="radio1"/> + <input type="radio" name="radio1" id="radio1" value="on"/> <input type="radio" name="radio2" id="radio2" checked="checked"/> <input type="checkbox" name="check" id="check1" checked="checked"/> - <input type="checkbox" id="check2"/> + <input type="checkbox" id="check2" value="on"/> <input type="hidden" name="hidden" id="hidden1"/> <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/> |