Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Setting active image in carousel

Hi All,

I have a carousel in my View like below  and I have 4 images to be displayed in the carousel and have each of them as html divs.

I am able to set the images for the carousel dynamically by getting the ids of the html and doing a htmlid.innerhtml =. This works fine.

Now I need to set the active page as image2. I tried using carouselId.setActivePage("img2"). But this didnt work. Any help? Thanks

<Carousel id="carouselId" >


  <html:div id="img1"></html:div>

  <html:div id="img2"> </html:div>

  <html:div id="img3"></html:div>

  <html:div id="img4"></html:div>




Former Member
Not what you were looking for? View more on this topic or Ask a question