Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarrow committed Oct 7, 2012
1 parent 2e3f633 commit 9993c62
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,22 @@ For cross-domain requests, **ajax** uses JSONP by default but this can be overri
$('form').ajax('ajax.html'); // XHR all form data using "GET" to "ajax.html"
$({text:'Foo Bar'}).ajax('ajax.html'); // XHR the JSON using "GET" to "ajax.html"
$('form').ajax('ajax.html',"POST",function(data,status){ },true); // XHR all form data using "POST" to "ajax.html", returns responseText and status, adds a cache busting time stamp
</script>
</body>
</html>
```
```html
<!DOCTYPE html>
<html>
<head>
<script src="chibi-min.js"></script>
</head>
<body>
<script>
$({sort:'created',direction:'asc'}).ajax('https://api.github.com/users/kylebarrow/repos?callback=?','GET',function(data,status){ }); // JSONP
</script>
</body>
</html>
```

##### FIN

0 comments on commit 9993c62

Please sign in to comment.