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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:24:00+00:00 2026-05-28T04:24:00+00:00

I have a page where I’m trying to apply the tinyscrollbar plugin to some

  • 0

I have a page where I’m trying to apply the tinyscrollbar plugin to some div loaded through AJAX. The plugin breaks and I get the oViewport.obj[0] is undefined error in the console.

The same code works on other divs that already exists on the page. Any ideas? Thanks

The CODE is:

$("#sidebar-right").html("<div>bla bla bla <div class='tinyscroll'>bla bla bla</div> bla bla bla</div>");
$(".tinyscroll").tinyscrollbar({sizethumb: 24, wheel: 10});
  • 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-28T04:24:01+00:00Added an answer on May 28, 2026 at 4:24 am

    The problem was that I was adding all the html markup ( needed by tinyscroll ) to the div I wanted through jquery (using $(selector).wrap(some elements)). I tested to see if the new alements exists in the DOM and they were present, but tinyscroll couldn’t find them. Now I added that html markup to the ajax response itself and it’s working.

    But I still can’t figure it out why it works on other divs not loaded via ajax.

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

Sidebar

Related Questions

I have a page with some controls, usercontrols etc. when I change a div
I have page loading, via AJAX a PHP page into a div. In turn,
I have page with some div which have relative position and i want to
Basically, what I'm trying to create is a page of div tags, each has
I have Page A which calls Page B using AJAX. Page B will be
I have page part like this <div id=inbox> <h1>Headline</h1> <p>First paragraph</p> <table> <tbody> <tr>
I have page like this <html> <head> <div id=container> Hello, this is NON-IE content.
I have page register.php, which is used to get user informations, after completion of
I have page A and pageB. Page A loads page B into a div.
I have page and call method inside my page. I want to add some

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.