Permalink
Browse files

README update

  • Loading branch information...
kylebarrow committed Oct 8, 2012
1 parent 745dbb8 commit b4e98abec9c53ddcbc47f285be3811aafc1c5b00
Showing with 10 additions and 3 deletions.
  1. +10 −3 README.md
View
@@ -417,9 +417,16 @@ For cross-domain requests, **ajax** uses JSONP by default but this is overridden
<input type="text" value="Foobar" name="text">
</form>
<script>
- $('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
+ // XHR all form data using "GET" to "ajax.html"
+ $('form').ajax('ajax.html');
+
+ // XHR the JSON using "GET" to "ajax.html"
+ $({text:'Foo Bar'}).ajax('ajax.html');
+
+ // XHR all form data using "POST" to "ajax.html", returns responseText and status, adds a cache busting time stamp
+ $('form').ajax('ajax.html',"POST",function(data,status){
+ // Do awesome
+ },true);
</script>
</body>
</html>

0 comments on commit b4e98ab

Please sign in to comment.