git.asbjorn.biz
/
jquery.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Capitalized Deferred & _Deferred to clearly mark them as new types, like Event.
[jquery.git]
/
test
/
data
/
jsonp.php
1
<?php
2
error_reporting(0);
3
$callback = $_REQUEST['callback'];
4
$json = $_REQUEST['json'];
5
if($json) {
6
echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';
7
} else {
8
echo $callback . '({ "data": {"lang": "en", "length": 25} })';
9
}
10
?>