1$(document).ready(function () { 2 getFooterAddress(); 3}); 4 5function execAjax(_url, _success, _fail,_async) { 6 $.ajax({ 7 url: _url, 8 method: "GET", 9 headers: { "Accept": "application/json; odata=verbose" }, 10 async:_async, 11 success: function (data) { 12 _success(data); 13 }, 14 error: function (data) { 15 _fail; 16 } 17 }); 18} 19 20function getFooterAddress(){ 21 22 var dc = this; 23 var requestUri = window.location.protocol + "//" + window.location.host + _spPageContextInfo.siteServerRelativeUrl + "/_api/web/lists/getbytitle('Trinity Address')/items"; 24 dc.successCallback = function (responseData, ResultsItems, queryTxt) 25 { 26 pCount = responseData.d.results.length; 27 var output=""; 28 //output += "<li>"; 29 //output += "<a href='http://dallaspolice.net'><img src='/PublishingImages/patch.png' width='50' /></a></li>"; 30 responseData.d.results.forEach(Display); 31 function Display(element, index, array) 32 { 33 //output += "<li>"; 34 output += element.Description; 35 } 36 $("#address").html(output); 37 } 38 39 dc.failureCallback = function (error) { 40 console.log("error"); 41 } 42 43 execAjax( 44 requestUri, 45 dc.successCallback, 46 dc.failureCallback, 47 false 48 ) 49}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.