Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>function getProdList(id,langid) { var xmlHttp=initXMLHTTPRequest(); //console.log(xmlHttp); var str = "value="+id+"&amp;langid="+langid; var span=""; var url = "../php/searchDetails.php?"; document.getElementById('imgDiv').style.display = 'block'; xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4 ) { document.getElementById('imgDiv').style.display = 'none'; span=span+"&lt;ul style='padding-bottom:20px;'&gt;&lt;li&gt;&lt;b&gt;"+id+"&lt;/b&gt;&lt;/li&gt;"; var xmldata=xmlHttp.responseXML; var xmlObj = xmldata.getElementsByTagName("ProductDetails")[0]; var menusize=xmlObj.childNodes[0].childNodes[0].childNodes[0].nodeValue; var xmlObjlength = xmlObj.childNodes.length; for(var i=1;i&lt;xmlObjlength;i++) { var ProductName=xmlObj.childNodes[i].childNodes[0].childNodes[0].nodeValue; var productId=xmlObj.childNodes[i].childNodes[1].childNodes[0].nodeValue; span=span+"&lt;li style='line-height:20px;display:block;height:20px;list-style:none;border-bottom:1px solid #666666;'&gt;&lt;a href='product.php?id_product="+productId+"'&gt;&lt;div&gt;"+ProductName+"&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;" } if(xmlObjlength==1) { document.getElementById("products").innerHTML=""; document.getElementById("products").innerHTML="Sorry No Products Under this Alphabet"; } else { document.getElementById("products").innerHTML=""; span=span+"&lt;/ul&gt;"; document.getElementById("products").innerHTML=span; } } }; xmlHttp.open("POST",url,true); xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", str.length); xmlHttp.setRequestHeader("Connection", "close"); xmlHttp.send(str); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload