Note that there are some explanatory texts on larger screens.

plurals
  1. PObootstrap carousel in xpages is not manually sliding
    primarykey
    data
    text
    <p>I implemented the bootstrap carousel into my xpages and it works fine in automatic mode. But I am not able to manually switch the pictures (the hover stops also works well).</p> <p>Below is the code which was created from my xpage. Ok, the id tags looks a little bit strange. The href's are computed...</p> <pre><code>&lt;div id="view:_id1:_id215:carousel" class="carousel slide"&gt; &lt;div id="view:_id1:_id215:carousel_inner" class="carousel-inner"&gt; &lt;div id="view:_id1:_id215:carousel_inner:0:Image" class="item active"&gt; &lt;img id="view:_id1:_id215:carousel_inner:0:image1" src="....jpg" alt="" class="viewphoto"&gt;&lt;/div&gt; &lt;div id="view:_id1:_id215:carousel_inner:1:Image" class="item"&gt; &lt;img id="view:_id1:_id215:carousel_inner:1:image1" src="....jpg" alt="" class="viewphoto"&gt;&lt;/div&gt; &lt;div id="view:_id1:_id215:carousel_inner:2:Image" class="item"&gt; &lt;img id="view:_id1:_id215:carousel_inner:2:image1" src="....jpg" alt="" class="viewphoto"&gt;&lt;/div&gt; &lt;/div&gt; &lt;a id="view:_id1:_id215:cLeft" href="#view:_id1:_id215:carousel" class="carousel-control left" data-slide="prev"&gt;&amp;lt;&lt;/a&gt; &lt;a id="view:_id1:_id215:cRight" href="#view:_id1:_id215:carousel" class="carousel-control right" data-slide="next"&gt;&amp;gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>thats how the xpage code looks (as an additional info)</p> <pre><code> &lt;xp:panel id="carousel" styleClass="carousel slide"&gt; &lt;xp:repeat id="carousel_inner" rows="30" value="#{view1}" var="cImages" styleClass="carousel-inner"&gt; &lt;xp:panel id="Image"&gt; &lt;xp:this.styleClass&gt;&lt;![CDATA[#{javascript:if (sessionScope.carCount == 1){ sessionScope.carCount = 2; return "item active"; } else { return "item" }}]]&gt;&lt;/xp:this.styleClass&gt; &lt;xp:image id="image1" styleClass="viewphoto"&gt; &lt;xp:this.url&gt;&lt;![CDATA[#{javascript:getCImageHTML(cImages.getDocument(), "fnImage", "Image")}]]&gt;&lt;/xp:this.url&gt; &lt;/xp:image&gt; &lt;xp:panel styleClass="carousel-caption" id="caption"&gt; &lt;h4&gt;Thumbnaillabel header&lt;/h4&gt; &lt;xp:label value="Aloha some description" id="label1"&gt;&lt;/xp:label&gt; &lt;/xp:panel&gt; &lt;/xp:panel&gt; &lt;/xp:repeat&gt; &lt;xp:link escape="true" id="cLeft" styleClass="carousel-control left" value="##{id:carousel}"&gt; &lt;xp:this.text&gt;&lt;![CDATA[&lt;]]&gt;&lt;/xp:this.text&gt; &lt;xp:this.attrs&gt; &lt;xp:attr name="data-slide" value="prev"&gt;&lt;/xp:attr&gt; &lt;/xp:this.attrs&gt; &lt;/xp:link&gt; &lt;xp:link escape="true" id="cRight" styleClass="carousel-control right" value="##{id:carousel}"&gt; &lt;xp:this.text&gt;&lt;![CDATA[&gt;]]&gt;&lt;/xp:this.text&gt; &lt;xp:this.attrs&gt; &lt;xp:attr name="data-slide" value="next"&gt;&lt;/xp:attr&gt; &lt;/xp:this.attrs&gt; &lt;/xp:link&gt; &lt;/xp:panel&gt; </code></pre> <p>So maybe someone have an idea. Or maybe it is not possible because of the computed id tags.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload