Safari 2 was having problems with the syntax used for the ready handling.
[jquery.git] / test / data / jsonp.php
1 <?php\r
2 error_reporting(0);\r
3 $callback = $_REQUEST['callback'];\r
4 $json = $_REQUEST['json'];\r
5 if($json) {\r
6         echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';\r
7 } else {\r
8         echo $callback . '({ "data": {"lang": "en", "length": 25} })';\r
9 }\r
10 ?>\r