Jssor slider: how to reload / update slider to show new images

I am using jssor image slider to display images, but I am encountering a problem when reloading the slider.

I am retrieving the image URL at runtime from the server via WebService.

I need to display the newly selected image urls.

But I could not find the API for updating the slider, and also did not clear the slider and update.

Please let me know if someone has done this.

Thanks Harisha

+7
jssor
source share
1 answer

You can place any content on each slide, and you can freely delete / insert elements at runtime.

<div u="slides" ...> <div id="slide1"><!-- any content of slide1 /></div> <div id="slide2"><!-- any content of slide2 /></div> </div> 

Thus, you will handle the image size yourself and will never use the u = "image" attribute for any image.

0
source share

All Articles