Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. url = 'http://mybucket.s3.amazonaws.com/simdata.zip';
  2. $.ajax({
  3. url: url,
  4. dataType: "json",
  5. contentType: "application/json; charset=utf-8",
  6. success: function(response) {
  7. console.log("received");
  8. },
  9. failure: function(response) {
  10. // TODO: decent error message
  11. alert('Unable to load');
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement