Create a gist now

Instantly share code, notes, and snippets.

@mjhea0 /ajax.js Secret
Created Oct 19, 2013

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