Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts

    nanoScroller - more than one per page?

    Hello, everyone.

    Has anyone successfully managed to get more than one instance of nanoScroller working on a page? I either get errors, or the native scrollbar appears.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    I should probably give some details, although the original question was really just to see if anyone else successfully accomplished it.

    I have a page (jobs.cfm) that, upon initial load, lists job requests on the left side (this is using nanoscroller, no problem); when one is clicked, the details appear on the right side (which is blank when the page first loads) by making an AJaX call to another .cfm page, grabbing the data, and using jQuery to populate the area.

    The jobs.cfm page has a defined area of width and height for displaying the data, which leaves a 60px border on top, and dynamic-sized borders on left, right, and bottom. Towards the bottom of jobs.cfm is the command to initialize nanoscroller: $('#about').nanoScroller();

    I've tried initializing the second instance of nanoscroller after the new data loads (there has to be SOMEthing there, otherwise there is no height, so nanoscroller won't work.) Most of the time, I get an error message (a style in the jquery.min.js doesn't exist), but sometimes the first scroller will appear as a native scrollbar, while the second one still doesn't start.

    Anyone else experience this issue?

    Thank you,
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #3
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Anyone?
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •