/g; return content.replace(reg, ''); }); template.helper('getSrc', function(content) { var regex = / 0) return regex.exec(content)[1]; else return "Images/newslogo.webp"; }); var listView = template('template', data); $('#ListView').html(listView); $('#pageCount').html(data.pageCount); if ("first" != anchor) { document.getElementById(anchor).scrollIntoView(); } } }, error: function(XMLHttpRequest, textStatus, errorThrown) { console.log(XMLHttpRequest.status); console.log(XMLHttpRequest.readyState); console.log(textStatus); } }); }