#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    643
    Rep Power
    38

    JS scrollbar is buggy


    OK, I have a JS scroll bar on my site. You can see the site here

    The scrollbar code looks like this:
    PHP Code:
    <script type="text/javascript">      $(document).ready(function() {                    // extra code from sean goes here              $('#mainBody2').tinyscrollbar({ customScrollHeight: "10550", hasCustomScrollHeight: true }); 
    For some reason the scroll bar doesn't always work, and I have to refresh the page, to get it to work.

    Can anyone advise on this?
    thanks
    Last edited by lelales; November 22nd, 2012 at 11:10 AM. Reason: code update
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    643
    Rep Power
    38

    can someone please help?


    OK, my client just sent out an email blast to like over 100 companies. Id I can't get the JS scroll bar to work on all browsers, I am screwed.

    It works OK, but a lot of time you have to refresh to get it to work properly.

    I don't know how to fix this, and I am in a jam!

    Thanks in advance!
    -S
  4. #3
  5. JavaScript is not spelt java
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2011
    Location
    Landan, England
    Posts
    743
    Rep Power
    165
    Code:
    <script src="js/lightbox2.js" type="text/javascript"></script>
    <script src="js/jquery-ui-1.8.18.lightbox.custom.min.js" type="text/javascript"></script>
    lightbox is a jquery feature, so you must load the jquery library before the lightbox js.

    Code:
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    You should learn to use the browser's console - this is how I discovered this.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    643
    Rep Power
    38

    Thakns AndrewSW


    Thanks but that did not solve the scroll bar issue. I have to refresh the page to get the scroll bar with the full height of the document.

    Can you advise on how to work with the "browser's console?" I don't believe I have ever done this.

    And I really need this to work ASAP. Can anyone assist with this?

    Thanks
    Last edited by lelales; November 23rd, 2012 at 08:21 AM. Reason: more info

IMN logo majestic logo threadwatch logo seochat tools logo