git.asbjorn.biz
/
jquery.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fixed #1999 by replacing the 'no-cache' parameter if it is there instead of just...
[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