nanoScroller - more than one per page?
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.
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?
|All times are GMT +1. The time now is 03:28 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.