Skip to content

Instantly share code, notes, and snippets.

@mjhea0

mjhea0/ajax.js Secret

Created October 19, 2013 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjhea0/05da6ead756bd6af7d3b to your computer and use it in GitHub Desktop.
Save mjhea0/05da6ead756bd6af7d3b to your computer and use it in GitHub Desktop.
if (!body.query.results.RDF.item['about'] === false) {
craig = "No results found. Try again.";
} else {
results = body.query.results.RDF.item[0]['about']
craig = '<a href ="'+results+'">'+results+'</a>'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment