- This topic is empty.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
var data=["2013-Sep-25_resized_BrUwRBgGu6zyzFtw6b9A_Hydrangeas.jpg","2013-Sep-25_resized_P0W11ZSxqFF14KmL_Penguins.jpg","2013-Sep-25_resized_qEx7eyheJhXTaBPhvZn_Penguins.jpg","2013-Sep-25_resized_QHYhHjuZKfL_Penguins.jpg","2013-Sep-25_resized_ulmuKty4UHGD_Tulips.jpg"];
function updateslider(){
// $('#Videosandimages').load('func/view/student/videosandimages.php?mode=new&studentid='+$("#studentdata").val()+'&gameid='+$("#gamedata").val());
//$(this).reload(true);
//updating slider
$('#slider li').remove();
$('.thumbNav li').remove();
$.get('func/bl/getFiles.php?slider=1&thumbnail=0&studentid='+$("#studentdata").val(),function(data){
imagedata = data.split("~@#");
$("#sliderdiv").show();
$("#slider").html(imagedata[0]);
imagedata=jQuery.grep(imagedata,function(n, i){return (n !== "" &&i!=0&& n != null);});//deletes the null value from the array
//set current slider to default first place
$('.anythingSlider').anythingSlider(0);
$('#slider').anythingSlider({navigationFormatter:function(i,panel){
data[i] = data[i].replace("resized","thumbnail");
var src = '<img src="func/artifacts/artifacts_images/'+$("#studentdata").val()+'/' + data[i] + '">';
return src;
}
});
});
}
in the above code im able to update slider but unable to update thumbnail please help me with this