Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7176517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:31:27+00:00 2026-05-28T16:31:27+00:00

Alright, so I’m working on a website and currently I have a shoutbox at

  • 0

Alright, so I’m working on a website and currently I have a “shoutbox” at the index page however I’m loading the shouts from another .php file the problem is that the scrollbars shows up but I can’t actually scroll, at the moment there are 6 shouts in the DB that are being loaded but I can only see 4 and I can’t scroll down any more.

If you want to check out the problem for yourself here is the link to the site (work in progress) http://ecazs.net/beerandguns/index.php

You are only able to see 4 but I can assure you there are 6!

This is the code I use to load shouts.

$(document).ready(function(){
            $('.messages').fadeIn("slow").load('shoutbox/load.shouts.php');
            setInterval(function() {
                $(".messages").load("shoutbox/load.shouts.php");
            }, 2000);
        });

And this is the “main” HTML of the shoutbox

<div id="chat" class="jspScrollable">
<div class="jspContainer" style="width: 620px; height: 327px;">
    <div class="jspPane" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: 600px; top: 0px; ">
        <form action="" method="post" class="shout">
            <p>
                <label for="message" class="msglabel">Message:</label>
            </p>
            <p>
                <textarea name="message" id="message" class="msgfield" rows="2" cols="95"></textarea>
            </p>
            <p>
                <input type="image" name="submit" src="ext/images/submit_btn.png" value="" class="submit" onmouseover="this.src = 'ext/images/submit_btn_hover.png';" onmouseout="this.src = 'ext/images/submit_btn.png';"/>
            </p>
        </form>
    <div class="messages"></div>
</div>

I’m then using the jScrollpane function before body ENDS. So I’m first loading the content then the jScrollpane.

$(function(){
            $('#chat').jScrollPane();
        });

I really need help with this, if you have any ideas on how to solve this or improve it then please, please let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:31:28+00:00Added an answer on May 28, 2026 at 4:31 pm

    Your HTML is not good for jScrollPane.

    You have two .jspContainer and .jspPane in #chat.

    Just remove the classes jspContainer and jspPane for the elements in the first div.jspPane

    And you have to use the callback function for load, to tell the jScrollPane the content changed.
    your js should be something like :

     //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);
    

    — update

    I’s a JS replacement for the one you show us :

    $(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);
    });
    

    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 :

    <div style="width: 640px; height: 327px;" class="jspContainer">
        <div style="padding: 5px 10px; width: 600px; top: 0px;" class="jspPane">
            <div class="jspContainer" style="width: 620px; height: 327px;">
                <div class="jspPane" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: 600px; top: 0px; ">                    
                </div>
            </div>
            <div class="jspVerticalBar">
                <div class="jspCap jspCapTop"></div>
                <div style="height: 327px;" class="jspTrack">
                    <div style="height: 318px;" class="jspDrag">
                        <div class="jspDragTop"></div>
                        <div class="jspDragBottom"></div>
                    </div>
                </div>
                <div class="jspCap jspCapBottom"></div>
            </div>
        </div>
    </div>
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright so i have been working on this Dynamic load of a spinner from
Alright, here is my problem i'm trying to solve. I have an index page
Alright, currently I have my SWF hitting a php file that will go and
Alright. I have several queries <?php // Make a MySQL Connection mysql_connect(mm.hostname.net, user, pass)
Alright, so I'm currently working on a game and ran into a memory issue
Alright, switching from working Hpricot to Libxml-ruby due to speed and well the disappearance
Alright I don't see why this isnt working. It seems pretty simple. Here is
Alright, this is driving me nuts because my regex is working on Rubular, but
Alright so I have no idea how to even begin doing this But basically
Alright I created some custom classes for my project sourced from this tutorial ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.