MCPcopy Create free account
hub / github.com/adobe/Marinus / retrieve_results

Function retrieve_results

web_server/public/javascripts/api.js:406–413  ·  view source on GitHub ↗

* Fetches JSON response. * @returns {promise} Promise jqXHR object

(url, response_element)

Source from the content-addressed store, hash-verified

404 * @returns {promise} Promise jqXHR object
405 */
406function retrieve_results(url, response_element) {
407 return $.getJSON(url).fail(function (jqXHR, textStatus, errorThrown) {
408 if (jqXHR.status === 200 && errorThrown.message.length) {
409 $('#' + response_element).text('<H3>Infoblox Owner Information</H3>Infoblox Owner Error: Bad JSON! ' + errorThrown.message).addClass('boldElem');
410 }
411 errorHandler();
412 });
413}
414
415/**
416 * Renders the owner details.

Callers 1

ibloxOwnerFunction · 0.85

Calls 1

errorHandlerFunction · 0.85

Tested by

no test coverage detected