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 8640725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:20:58+00:00 2026-06-12T11:20:58+00:00

If i install the jScrollPanel it works fine, but when i try to catch

  • 0

If i install the jScrollPanel it works fine, but when i try to catch content from ajax, it doesn’t make the scrollbar, because it still thinks there is no content in.

So my question is, how can i re-render the jScrollPanel, so it now it has to put scrollbar on/off?

Here is my catching script:

 "chatlog": function() {
      $.ajax({url: '?chatlog=&' + new Date(),success: function(data){
         if ( nagoom.trim(data) != "") {
            $('#__chatlog').html(data);

        }
      }});
     }

Here is where i install it:

$('aside .chat-entity').jScrollPane({
        showArrows: true,
        verticalGutter: -13,
        autoReinitialise: true
});

I am using this script http://jscrollpane.kelvinluck.com/less_basic.html

  • 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-06-12T11:20:59+00:00Added an answer on June 12, 2026 at 11:20 am

    Evidently there is a reinitialise method on the API object. Include this in your response function. More information on this can be found here

    EDIT: I have not used this script before so I hesitate to provide code, but I assume it would work something like this:

    success: function(data){
         if ( nagoom.trim(data) != "") {
            $('#__chatlog').html(data);
            jScrollPaneObjectReference.data('jsp').reinitialise();
        }
      }
    

    where jScrollPaneObjectReference is the object returned when you constructed the panel

    EDIT: I will clarify further. jScrollPaneObjectReference should refer to the object returned when you do this:

    $('aside .chat-entity').jScrollPane({ showArrows: true, verticalGutter: -13, autoReinitialise: true }); 
    

    Try putting this at the top of your code:

    window.jScrollPaneObjectReference = $('aside .chat-entity').jScrollPane({ showArrows: true, verticalGutter: -13, autoReinitialise: true });
    

    EDIT: Try removing the autoReinitialise parameter.

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

Sidebar

Related Questions

I try to install iconv module, but it always stay at: ^Cyippeeyippee@mini: server$ npm
I am trying to install a package from github, but keep getting the following
I install and configure Active Admin to my rails app. It works fine on
easy_install python extension allows to install python eggs from console like: easy_install py2app But
On install I want to optionally copy some .ini files from SOURCEDIR to TARGETDIR
I am trying to install a Maven distribution from sourceforge (jtmt.sf.net) which provides a
Bundle install worked. But when I git push heroku master, I got this: C:\Sites\first_app>git
I install the subversion on my windows server 2008. But it's only work localhost.
Install Code ignitor 1.7.3 and try to convert my existing project which is in
To install jpl(A Java Interface to Prolog),when I type 'make', it shows checking symlink

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.