git.asbjorn.biz
/
jquery.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added support for:
[jquery.git]
/
build
/
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