1function getXMLHTTP() { //function to return the xml http object 2 var xmlhttp=false; 3 try{ 4 xmlhttp=new XMLHttpRequest(); 5 } 6 catch(e) { 7 try{ 8 xmlhttp= new ActiveXObject("Microsoft.XMLHTTP"); 9 } 10 catch(e){ 11 try{ 12 xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 13 } 14 catch(e1){ 15 xmlhttp=false; 16 } 17 } 18 } 19 20 return xmlhttp; 21 } 22 23 function get_subcat(catId) { 24 var strURL="https://www.jbcarpages.com/sidemenu/findsubcat.php?catId="+catId; 25 var req = getXMLHTTP(); 26 27 if (req) { 28 29 req.onreadystatechange = function() { 30 if (req.readyState == 4) { 31 // only if "OK" 32 if (req.status == 200) { 33 document.getElementById('subcat_div').innerHTML=req.responseText; 34 } else { 35 alert("There was a problem while using XMLHTTP:\n" + req.statusText); 36 } 37 } 38 } 39 40 req.open("GET", strURL, true); 41 req.send(null); 42 } 43 44 } 45 46 function get_subcat2(subcatId) { 47 var strURL="https://www.jbcarpages.com/sidemenu/findsubcat2.php?subcatId="+subcatId; 48 var req = getXMLHTTP(); 49 50 if (req) { 51 52 req.onreadystatechange = function() { 53 if (req.readyState == 4) { 54 // only if "OK" 55 if (req.status == 200) { 56 document.getElementById('subcat2_div').innerHTML=req.responseText; 57 } else { 58 alert("There was a problem while using XMLHTTP:\n" + req.statusText); 59 } 60 } 61 } 62 req.open("GET", strURL, true); 63 req.send(null); 64 } 65 66 }
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.