Widget:PillIdentifier: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 163: Line 163:
$.getJSON(jsonURL, function (data) {
$.getJSON(jsonURL, function (data) {
if(arrayName.length > 0){
if(arrayName.length > 0){
$.each(data.query.results, function(ind, val) {
$.each(data.query.results, function(ind, val) {
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
//////                  Store each returned result                //////
//////                  Store each returned result                //////
Line 246: Line 246:
//Add Values to the cells:
//Add Values to the cells:
$("#resultsTable-container").append(pillContainer);
$("#resultsTable-container").append(pillContainer);
} else {
$("#resultsTable-container").append("No results found");
}
}
} else {
$("#resultsTable-container").append("No results found");
}
});
});

Revision as of 00:35, 3 August 2015