Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your HTML is not good for jScrollPane.</p> <p>You have two .jspContainer and .jspPane in #chat.</p> <p>Just remove the classes jspContainer and jspPane for the elements in the first div.jspPane</p> <p>And you have to use the callback function for load, to tell the jScrollPane the content changed. your js should be something like :</p> <pre><code> //caching element var messages = $('.messages'), chat = $('#chat'); messages.fadeIn("slow"); var loadChatContent = function() { messages.load('shoutbox/load.shouts.php', chat.jScrollPane); } loadChatContent(); setInterval(loadChatContent, 2000); </code></pre> <p>--- update</p> <p>I's a JS replacement for the one you show us :</p> <pre><code>$(document).ready(function() { //caching element var messages = $('.messages'), chat = $('#chat'); messages.fadeIn("slow"); var loadChatContent = function() { messages.load('shoutbox/load.shouts.php', chat.jScrollPane); } loadChatContent(); setInterval(loadChatContent, 2000); }); </code></pre> <p>In your website ( not the code you shown ) your html contains two div.jspContainer and two div.jspPane, it will not work if you don't remove class from the elements in you first div.jspPane Your code :</p> <pre><code>&lt;div style="width: 640px; height: 327px;" class="jspContainer"&gt; &lt;div style="padding: 5px 10px; width: 600px; top: 0px;" class="jspPane"&gt; &lt;div class="jspContainer" style="width: 620px; height: 327px;"&gt; &lt;div class="jspPane" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: 600px; top: 0px; "&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="jspVerticalBar"&gt; &lt;div class="jspCap jspCapTop"&gt;&lt;/div&gt; &lt;div style="height: 327px;" class="jspTrack"&gt; &lt;div style="height: 318px;" class="jspDrag"&gt; &lt;div class="jspDragTop"&gt;&lt;/div&gt; &lt;div class="jspDragBottom"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="jspCap jspCapBottom"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>jScrollPane will accord the scroll with the height of the content of the first div.jspPane, but in your div.jspPane, you have a second div.jspContainer which have 327px for height. So jScrollPane consider that there is no more content to show. Just remove classes jspContainer and jspPane on line corresponding to my lines 3 and 4, and modify your js, i think it can work like that.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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