Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Calling Big Huge Thesaurus's API with jQuery
url : "" + word + "/json?callback=?",
dataType : 'json',
complete : function(jqXHR, textStatus) {
if (textStatus == 'parsererror') {
// Did not find any synonyms
alert("404 error because no synonyms exist for this word");
success : function(data) {
// Found synonyms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.