php - Pretty Lightbox Not working after fetching data from Ajax -


i have developed code display products when user lands on page.. check below image

enter image description here

my issue whenever user clicks on category 01 or other category checkbox, lightbox used on product box in right side gets disable.. please note after clicking on checkbox data fetched using ajax function..

below ajax code :

var xmlhttp=makerequestobject(); controlsarray=document.getelementsbytagname('input');   var products = ""; var productsall = ""; var prodall = true;  for(var i=0; i< controlsarray.length; i++){       if(controlsarray[i].type=="checkbox" && controlsarray[i].checked){         if(controlsarray[i].value == "all")         {             productsall=controlsarray[i].value + ",";          }         else         {             products+=controlsarray[i].value + ",";             prodall = false;          }     }   } if(prodall == true) {     products = productsall; }  xmlhttp.open('get', 'ajax-page.php?id=1&sid='+products, true); xmlhttp.onreadystatechange=function() {     if (xmlhttp.readystate==4 && xmlhttp.status == 200) {         var content = xmlhttp.responsetext;         if(content){             document.getelementbyid('hint').innerhtml = content;             }         }     }     xmlhttp.send(null) } 

my ajax page code : (ajax-page.php)

<li>         <div><a href='prodetails.php?proid=1&iframe=true&amp;width=620&amp;height=350' rel="prettyphoto[iframe]"> <img src="img path" align="absmiddle" /></a></div>        <div><a href='#'>product 01</a></div></li> 

let me know can lightbox work when data fetched ajax control

thanks frndz..

i have resolved passing lightbox jquery ajax success..


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -