In it's current state, this module does not work, and should not even be categorized as nothing else but "alpha"...
I use jscrollpane on other sites and have tested your release...
Here is what's wrong with this module:
-- your module only calls the jScrollPane.js.... and that's it...
i.e. when you add to a page the following (as your only instruction include)
<?php jscrollpane_add(); ?>
the only thing this module does is add
<script type="text/javascript" src="//sites/all/modules/jscrollpane/jscrollpane.js?F"></script>
-- you still NEED the jScrollPane.css : http://kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.css
-- plus it won't work with drupal 6's jquery.js you'll need to include
(i don't know why this is, because 'misc/jquery.js' is in the headers as usual, and should be a recent version... and the jScrollPane site does say it should work with older versions... however, it doesn't)
here is what will work however, with all the features jScrollPane offers:
Comment | File | Size | Author |
---|---|---|---|
#8 | jscrollpane.zip | 38.38 KB | anil614sagar |
Comments
Comment #1
duntuk CreditAttribution: duntuk commentedthis got cut off, since i didn't wrap it in < code>
-- plus it won't work with drupal 6's jquery.js you'll need to include
<script type="text/javascript" src="http://kelvinluck.com/assets/jquery/jScrollPane/jquery-1.2.3.min.js"></script>
(i don't know why this is, because 'misc/jquery.js' is in the headers as usual, and should be a recent version... and the jScrollPane site does say it should work with older versions... however, it doesn't)
here is what will work however, with all the features jScrollPane offers:
Comment #2
cimo CreditAttribution: cimo commentedHi
I find it difficult to understand what to include and where to get Jscrollpane to work. Could anybody write down a short step by step guide?
Thanks
Simone
Comment #3
pisosse CreditAttribution: pisosse commentedI secound cimo..
I'm trying to retraint my frontpage blogroll from going to far down the page with a scrollpane.. how would you go around that?
Comment #4
cimo CreditAttribution: cimo commentedyep, i spent a couple of days moving jscripts here and there but with no joy.. I am eventually missing some basic concepts.. ihope that somebody who used jscroll on a Drupal install can write a line or two here..
thanks
Comment #5
pisosse CreditAttribution: pisosse commentedI wonder i you could hardcode it into a now block with PHP
Comment #6
shunting CreditAttribution: shunting commentedHere's how I got it to work.
1. The project is maintained on Google code:
http://code.google.com/p/jscrollpane/
I went there and downloaded the demo-1.2.3.zip and jScrollPane-1.2.3.js.
After unzipping the demo files and seeing that they worked, I grabbed files from the demos and did the following to get them into drupal:
2. Here is my file layout:
3. I replaced the entire *.module file with this function. It uses hook_init to load the files in the layout above (the original module didn't actually load any files):
4. I also created jscrollpane.init.js. It associated the scrollPane functionality with document IDs:
5. Lastly, I went into my *.tpl.php and gave the DIV I wanted to have a scrollbar the right ID and class:
6. After clearing all the caches, it worked!
Things to watch out for: FireBug is wonderful. Make sure the ID and class are spelled correctly ("scroll-pane" not "scroll-panel"). Check the header to see what actually loaded. Make sure the module is enabled. And so on.
In a perfect world, I'd change the stylesheet from "demo"... And clean up the code some.
I also had no issues with the version of JQuery -- that I know of. I'm running D6.11.
Hope this helps!
NOTE I was trying to get a page with tabs in content using ui.tabs.js, but this module and that don't seem to be compatible. Maybe somebody can figure that out.
Comment #7
cimo CreditAttribution: cimo commentedThank you shunting
your guide was essential!
Simone
Comment #8
anil614sagar CreditAttribution: anil614sagar commentedHi Guys,
Attaching .zip of jscollpane module with the changes mentioned by shunting. Install the module and enjoy.
Thanks shunting for the guide.
Cheers,
Anil Sagar
Comment #9
Dave KopecekThe shunting files (#6) zipped by anil614sagar (#8) worked perfectly. Thanks.
Note that in in demoStyles.css there's the following style:
This may cause head scratching when your site's font size shrinks across the board. Might be wise to pull that body selector right out before somebody gets hurt.
Also - It's pretty straightforward to include jquery-em:
http://davecardwell.co.uk/javascript/jquery/plugins/jquery-em/
This will scale the scrollbox if the user changes the font-size.
Create jquery-em.js and add it with drupal_ad_js in scrollpane.module
Comment #10
shunting CreditAttribution: shunting commentedThanks for the jquery-em.js tip, sorry about the 80%, and I'm glad I contributed something!
Comment #11
picardo CreditAttribution: picardo commentedCooperation in this thread made me shed a single tear.
Comment #12
cimo CreditAttribution: cimo commentedSomething to watch out for.
In a multisite environment, the DIV you ll set in the script will affect all sites if the module is enabled, although no class is set in the page.tlp.php. (I ended up with a module page without scroll)
At this point we only miss to set a variable for the DIV, which can be set in an admin page.
Comment #13
elasticventures CreditAttribution: elasticventures commentedHi,
I used shunting's revised jscrollpane module and have it working but with one small issue: I'm using custom 11x35 pixel arrow images but the full height of the images isn't displaying, even though the space on the scrollbar is reserved for them and they function properly. I'm using the arrowSize:35 parameter in the init function and have commented out the repositioning for hover & active events.
Any advice? Here's my jscrollpane-init.js call (trying to use the arrowSize parameter):
and here's my jScrollPane.css (commented/revised some of the color options):
and this is my demoStyles.css (commented the active/hover repositioning actions):
Thanks for any help.
Comment #14
elasticventures CreditAttribution: elasticventures commentedSorry to bother you - I must've done something else the first time I tried to use the height property in the a.jScrollArrowUp and a.jScrollArrowDown CSS blocks. When I restored the original files and remodified, that solved my problem.
Thanks to everyone who contributed above.
Comment #15
pacome CreditAttribution: pacome commentedHi thanks a lot for your how to!
It helped me a lot
I also tried to use it with tabs (quicktabs module), but with no luck..
I only end with a blanck (not displayed) tab content...
Could you finaly make it working ?
Anyway, thanks again for your post.
Best
-P-
Comment #16
nevosa CreditAttribution: nevosa commentedHi,
I'm having a problem with jscrollpane:
some of the pages in IE8 show up 'white' seemingly without css when I enable the module.
the firebug shows this error:
Error: The stylesheet http://eastshore.artesania.ca/artists/jScrollPane.css was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://eastshore.artesania.ca/artists/betty
Line: 0
I am new to this module, and I'm not quite sure how to handle it. any ideas?
Comment #17
Cousken CreditAttribution: Cousken commentedI'm very aware this module is not maintained, but i'm hopeing someone can help me out...
I need a way to disable jScrollPane on specific pages. I have a whole subsection on my site which i don't want to use the function, while i ordinarily have it set to the Content div. The subsection is an embedded phpBB forum, and we simply don't want the scroll pane there. We are also using Zen Theme so there are a lot of ways to identify the page via CSS, for example.
Any good ideas on how i can disable jScrollPane on specific nodes or whole sections?
Comment #18
gumrol CreditAttribution: gumrol commented@Cousken - I'd recommend using the js injector module - it allows you to include javascript in the head of your document, with the same inclusion/ exclusion tools that for eg. a block would use. So you could invoke the jsScrollPane only on the pages of your choice.
Comment #19
gumrol CreditAttribution: gumrol commented@Cousken - I'd recommend using the js injector module - it allows you to include javascript in the head of your document, with the same inclusion/ exclusion tools that for eg. a block would use. So you could invoke the jsScrollPane only on the pages of your choice.
Comment #20
Cousken CreditAttribution: Cousken commentedThanks, gumrol, i'll take a look at that.
Comment #21
agentdcooper CreditAttribution: agentdcooper commentedI've noticed I cannot use this module (well, the one put together by #8 anil614sagar) with panels, has anyone else noticed this? I find that it works just fine everywhere but within a panel. is there a way to get this working within a panel? or am I doing something wrong?
Comment #22
ballboy CreditAttribution: ballboy commentedShunting, mate, you are a bloomin' star! Thanks.
Comment #23
pelicani CreditAttribution: pelicani commentedAgreed.
Great work.
Thanks for the effort!