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

The Archive Base Latest Questions

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

I seem to be having a problem that jScrollPane doesn’t seem to load on

  • 0

I seem to be having a problem that jScrollPane doesn’t seem to load on the first try, maybe because my table has images, I don’t know.

This is the demo

I tried all kinds of things such as this:

$(window).bind('load', function () {
    $('.scroll-pane').jScrollPane();
    $('.scroll-pane').jScrollPane({
        reinitialiseOnImageLoad: true
    });
});

To no avail :(! If anyone knows what’s up, please let me know, thank youu!!

  • 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-27T18:05:29+00:00Added an answer on May 27, 2026 at 6:05 pm

    It actually works for me. But the jScrollPane appears with some delay. I think this is necause you have coded the initialization like this:

    $(function() {
       $(window).bind('load', function()
       {
          $('.scroll-pane').jScrollPane();
       });
    });
    

    Binding to the event load will wait for all the page ressources to be loaded before executing (html, scripts, images, stylesheets…).

    Is there a particular reason you binded the load event ?

    You actually want to apply the jScrollPane to be initialized when your .scroll-pane element is ready so simply do this:

    $(function() {
          $('.scroll-pane').jScrollPane();
    });
    

    Edit

    I’ve debugged the page to check when was called jScrollPane().
    I did not know that the table was actually loaded with ajax.

    The problem is simple: your .scroll-pane does no exist when you call jScrollPane() !

    When the page is “ready”, here is what is executed:

    • Start loading the table with:

      $('#whole-ajax-content-one').load('events.html', function() { ... });

    • Executes the load event you binded (because the page has actually loaded, binding on window.load has nothing to do with your ajax loading of “events.html”:

      $('.scroll-pane').jScrollPane();

      As your table is not yet loaded/created, $('.scroll-pane') is empty !

    • Execute the callback of the .load() (with .tablesorter(), delegate(), etc)

    Solution is to put your jScrollPane init code into the callback of the .load(). This will ensure your .scroll-pane element actually exists.

    Note: I’m not 100% sure but it might work on successive reloads because browser caching is involved and by chance your table exists already when jScrollPanel() is executed.

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

Sidebar

Related Questions

I seem to be having a problem with a macro that I have defined
This is the problem that I am having 1.If the receiver is started first
I am having a problem that I just can't seem to figure out. The
I am having an annoying problem that I cannot seem to fix. I have
I'm having a very odd problem that I can't seem to track down. Any
I seem to be having a problem. I want to write some code that
I am having a problem that I can't seem to figure out. What I
One of my users is having this weird problem that I cannot seem to
I seem to be having a problem with checking for list equality. In my
Okay, I seem to be having a problem. I'm trying to create a twicker

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.