Created
June 15, 2015 09:27
-
-
Save ponelat/e9d6991a66c008e686fd to your computer and use it in GitHub Desktop.
jquery.getJson fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.fetch = function() { | |
url = this.url.value | |
$.getJSON(url).then(function(data){ | |
opts.data.trigger('change', data); | |
}).fail(function() { | |
console.error('Failed to load/parse json data from', url); | |
console.error(arguments); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment