Widget:PillIdentifier: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 162: | Line 162: | ||
var jsonURL = "http://www.wikidoc.org/api.php?action=ask&query="+queryParameters+printoutRequests+"&format=json"; | var jsonURL = "http://www.wikidoc.org/api.php?action=ask&query="+queryParameters+printoutRequests+"&format=json"; | ||
$.getJSON(jsonURL, function (data) { | $.getJSON(jsonURL, function (data) { | ||
if(arrayName.length > 0){ | |||
$.each(data.query.results, function(ind, val) { | $.each(data.query.results, function(ind, val) { | ||
///////////////////////////////////////////////////////////////////////// | ///////////////////////////////////////////////////////////////////////// | ||
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"); | |||
} | |||
}); | }); | ||
}); | }); | ||
$('#resultsTable-container').css("visibility", "visible"); | $('#resultsTable-container').css("visibility", "visible"); | ||
}; | }; | ||