* Fetches JSON response. * @returns {promise} Promise jqXHR object
(url, response_element)
| 404 | * @returns {promise} Promise jqXHR object |
| 405 | */ |
| 406 | function 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. |
no test coverage detected