Skip to content

Commit

Permalink
added note about ajax callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
rndme committed Dec 9, 2015
1 parent 62495ec commit f3c963e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,14 @@ Example Usage
download(new Blob(["hello world".bold()]), "dlHtmlBlob.html", "text/html");

#### ajax callback - [live demo](http://pagedemos.com/sxks39b72aqb/7)
(note that callback mode won't work on vanilla ajax or with binary files)

$.ajax({
url: "/download.html",
success: download.bind(true, "text/html", "dlAjaxCallback.html")
});


### Binary Files
#### image from URL - [live demo](http://pagedemos.com/yvvmxbjrwq7u/)
download("/diff6.png");
Expand Down

0 comments on commit f3c963e

Please sign in to comment.