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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:19:22+00:00 2026-06-10T03:19:22+00:00

I have created a tree structure using jQuery and web services. I create child

  • 0

I have created a tree structure using jQuery and web services. I create child nodes of tree by dynamic html which I create on the fly as and when needed. This tree works fine for me.

Now my second task is to have a custom scroller in it(something like what facebook/gmail have). I used JQuery Tiny Scrollbar plugin for this and it worked fine at first step but it fails to cope up with dynamically added html.

My tree is something like below:

- Asia
   India
   China
+ Europe
+ South America

Html for above is something like below:

<ul>
   <li><span>-</span><span>Asia</span></li>
   <li><span></span><span>India</span></li>
   <li><span></span><span>China</span></li>
   <li><span>+</span><span>Europe</span></li>
   <li><span>+</span><span>South America</span></li>
</ul>

Html for countries under Europe and South America is created on the fly when user clicks on ‘+’ icon

Now issue comes with this dynamically created HTML, as this tiny scrollbar plugin fails to handle this dynamic HTML. It simply ignores this HTML. Please suggest any pointers to rectify this.

Thanks,
Ravi Gupta

  • 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-10T03:19:23+00:00Added an answer on June 10, 2026 at 3:19 am

    I think that all you have to do is call the update function of the scrollbar plugin after the content has been loaded:

    //some operation that changes the viewport content...
    
    oScrollbar5.tinyscrollbar_update();
    

    That example is from the home page of the plugin:
    http://baijs.nl/tinyscrollbar/

    You would call this (or similar) code after your dynamic content changes.

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

Sidebar

Related Questions

I want to create tree structure using web service. I have used bottom up
i have the below structure in HTML, which i use to create a tree
I have two tree, which contains nodes, after I've created them, I take all
I have a tree like structure created out of models using ForeignKey linkages. As
I'm using Core Data and I have a file-folder tree-like structure. So I've created
I am using ExtJS 4. I have created a tree panel as var treeStore
I'm using Materialized Path tree (provided by django-treebeard) to create a tree structure (
A Product can have 1 or more child Products forming a tree structure. Child
For a new project I have created a local folder tree with empty Visual
I have a binary tree class that is created with a root node and

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.