Having trouble with my slider. The script that is added at runtime is not showing up in the ajax response. Does anyone know why this might be happening?
$.ajax({
url:"ajax_get_response_eng_to_change.php",
type:"POST",
async:true,
data:{cat_id:"cat_id",obj:obj } ,
beforeSend: function(){
}
})
.done(function(resp){
thumbGallerySetupDone();
var json_obj = jQuery.parseJSON(resp);
var output=
"<div class='a2' style='display: block;height: 185px;color:white' id='outg"+obj+"'>"+
"<div id='componentWrapper' >"+
"<div class='thumbContainer'>"+
"<div class='thumbInnerContainer' id='g"+obj+"'>";
for (var i in json_obj)
{
output+= "<div class='thumbHolder'><a class='pp_content' data-rel='prettyPhoto[gallery1]' href='administrator/public/upload/"+json_obj[i].cat_meta_img+"' title='"+json_obj[i].sub_n+"' ><img class='thumb_hidden' src='administrator/public/upload/"+json_obj[i].cat_meta_img+"' width='180' height='120'/></a> </div>>";
}
output+= "</div></div> <div class='thumbBackward thumb_hidden' id='previo'><img src='data/icons/thumb_backward.png' alt='' width='21' height='31' /></div> <div class='thumbForward thumb_hidden' id='nexta' ><img src='data/icons/thumb_forward.png' alt='' width='21' height='31' /></div></div></div>";
$("#prev_response").append(output);
});