Posted 2 November 2020, 6:14 am EST
Hi,
I have started to have issues with the carousel. Basically when they end user uploads photos it adds them to the carousel but now and then it does show them all. Below is my code snippet:-
$.ajax({
type: “POST”,
url: “CICMaint.aspx/ShowPhotos”,
data: “{‘CICRefNo’:'” + CICRefNo + “'}”,
contentType: “application/json; charset=utf-8”,
dataType: “json”,
async: false,
cache: false,
success: function (response) {
var htmlstr = “”;
//Clear Carousel Down
$(“.wijmo-wijcarousel-item”).each(function (e, args) {
$(this).remove();
});
$(“#Carousel”).c1carousel(“refresh”);
if (response.d.length >= 1) {
for (var photocount = 0; photocount <= response.d.length - 1; photocount++) {
htmlstr = “