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

  • SEARCH
  • Home
  • 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 7490325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:34:59+00:00 2026-05-29T15:34:59+00:00

I have used the scroll bar which is extracted from this site http://jscrollpane.kelvinluck.com/arrow_hover.html .

  • 0

I have used the scroll bar which is extracted from this site http://jscrollpane.kelvinluck.com/arrow_hover.html. I have integrated a ajax show hide function for some text. My problem is the scroll doesn’t works properly if i used the ajax show hide within the scroll pane. If i click the Click to open some text will open underneath it. But some of the text at the bottom will not displayed. It gets cut off. The scroll height doesn’t exceed.

The following is my html code.

<div class="scroll-pane">
  <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ligula id sem tristique ultrices
    eget id neque. Duis enim turpis, tempus at accumsan vitae, lobortis id sapien. Pellentesque nec orci
    mi, in pharetra ligula. Nulla facilisi. Nulla facilisi. Mauris convallis venenatis massa, quis
    consectetur felis ornare quis. Sed aliquet nunc ac ante molestie ultricies. Nam pulvinar ultricies
    bibendum. Vivamus diam leo, faucibus et vehicula eu, molestie sit amet dui. Proin nec orci et elit
    semper ultrices. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus
    mus. Sed quis urna mi, ac dignissim mauris. Quisque mollis ornare mauris, sed laoreet diam malesuada
    quis. Proin vel elementum ante. Donec hendrerit arcu ac odio tincidunt posuere. Vestibulum nec risus
    eu lacus semper viverra. </p>
  <p> Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
    Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit
    amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. </p>
  <p>
  <div class="avatar_content">
    <div><strong>KeysorSoze:</strong></div>
    <p>Spitfire might thwart the 3-peat but he won’t thwart The Dynasty.  One and done, Levi!</p>
    <div><a href="javascript:void(0);" onClick="javascript:ajaxshow('replybox');">Click to open</a></div>
  </div>
  <div id="replybox" style="display:none;">
    <div align="right" style="position:relative;"><a href="javascript:void(0);" onClick="javascript:ajaxhide('replybox');">close</a></div>
    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
      Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit
      amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.
      Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
      Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit
      amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. </p>
  </div>
  <div style="clear:both"></div>
  </p>
  <p> last content</p>
</div>

This is my css

.scroll-pane
{
    width: 500px;
    height: 200px;
    overflow:auto; background-color:#CCCCCC;
}

This is the script for ajax show hide

<script type="text/javascript">
function ajaxshow(id){
document.getElementById(id).style.display = 'block';
}
function ajaxhide(id){
document.getElementById(id).style.display = 'none';
}
function hide(id){
if (document.getElementById){
obj = document.getElementById(id);
obj.style.display = "none";
}
}

</script>

How can i correct that?

  • 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-29T15:35:00+00:00Added an answer on May 29, 2026 at 3:35 pm

    You need to reinitialize jScrollPane when the content changes. Something along these lines:

    function ajaxshow(id){
      document.getElementById(id).style.display = 'block';
      jQuery('.scroll-pane').jScrollPane();
    }
    function ajaxhide(id){
      document.getElementById(id).style.display = 'none';
      jQuery('.scroll-pane').jScrollPane();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used this in my HTML: <q> Hai How r u </q> Which
I have used Accordion and Slideshow on my site. http://www.delightbranding.com/ when you click Play.
http://csscreator.com/node/29717 I have found these page on google ,to disable vertical or horizontal scroll
I have used extension methods to extend html helpers to make an RSS repeater:
Further to this suggestion HTML div height auto I used Floating DIV in my
I want to create a Custom Scroll bar in my FLEX 3.0 application. Which
I am using this plugin: http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm The DIV im using the plugin on is
I have written a custom View which is used to display a tileable pattern,
I have a site, which upon clicking an image a lightbox pops up (eg
In my iPhone app I have implemented a custom tab bar which functions perfectly,

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.