[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Scrollbar for a dynamically loaded div

Posted on 2009-12-17
Medium Priority
Last Modified: 2012-05-08
Hi all,

I'm searching for a scrollbar script for a div that changes it's content dynamically.

Most of the scripts I've tried take effect on page load, so I have my scroll when the page is loaded, but as soon as the div changes its contents the scrollbar is gone.

Last tried: Flexcroll, it is a pitty, it's a great and compact (really minimal) script but I cannot make the scroll stay when the div changes contents :(

Please note that what I'm trying to do is to add some make-up to an overflow-y:scroll; (terrible that CSS can only make it for IE) so I'm looking for a very simple solution ..  

Any ideas??

Thanks a ton!

Question by:Dada44
  • 3
LVL 40

Accepted Solution

Gurvinder Pal Singh earned 2000 total points
ID: 26071329

Author Comment

ID: 26073025
thanks gurvinder372.

the second link is not what I'm looking for, that's the "ugly" default scrollbar but thanks anyway.
I'm testing the first link, I'll let u  know.

Thanks again

Author Comment

ID: 26073390
gurvinder372, first link failed :(
As it hapened with Flexcroll it works on dom loaded, not on div with new contents

Any other ideas ??

Author Closing Comment

ID: 31667268
thanks and sorry for delay in accepting th solution

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month20 days, 6 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question