rikukissa
8/14/2014 - 11:05 AM

foo.js

$.get('foobar.php').then(function() {
  console.log('success');
}, function() {
  console.log('fail');
});