- Posts: 3
COMMUNITY FORUM
JScrollpane conflict
- ako
- Topic Author
- Offline
- New Member
Less
More
14 years 8 months ago #81033
by ako
JScrollpane conflict was created by ako
I'm trying to use Rok Stories on a site that uses JScrollpane and got the following error:Fehler: $("comment-form").addEvent is not a functionQuelldatei: http://localhost/sylverice/components/com_k2/js/k2.jsZeile: 14The thumbnails show but the fullsize image is missing. The thumbnails are also not clickable i.e. when I click on them nothing happens.I've done a quick search around and read about the possible conflict with jquery and its suggested solution here:http://docs.jquery.com/Using_jQuery_with_Other_Libraries... which I've tried but no luck. Then again I don't know much about javascript and I'm not even sure if what I tried is right.This is my header currently:<head><jdoc:include type="head" /><script src="/<?php echo $this->baseurl ?>/templates/ice/scripts/jquery-1.4.2.min.js"></script><script src="/<?php echo $this->baseurl ?>/templates/ice/scripts/jquery.mousewheel.min.js"></script><script src="/<?php echo $this->baseurl ?>/templates/ice/scripts/jScrollPane.js"></script><link rel="stylesheet" media="all" href="/<?php echo $this->baseurl ?>/templates/ice/css/jScrollPane.css" /><link rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/ice/css/template.css" /><script> $(function() { // this initialises the demo scollpanes on the page. $('#mainbody-container').jScrollPane(); });</script></head>Adding the jQuery.noConflict(); line after this line:$('#mainbody-container').jScrollPane();works at least to get the RokStories happening, but then my pretty Jscrollpane scrollbar is gone and replaced by the normal scrollbar.I'm using K2 2.1, RokStories 1.5 and Joomla 1.5.15.Unfortunately the site is not yet online there is no live URL yet, so I can't show you directly.Does anyone have any ideas how to solve this conflict?Thanks in advance for your time and help.
Please Log in or Create an account to join the conversation.
- Simon Wells
- Offline
- Platinum Member
Less
More
- Posts: 955
14 years 8 months ago #81034
by Simon Wells
Replied by Simon Wells on topic JScrollpane conflict
Hi Ako,
From you explanation it seems more of a conflict between rokstories an JScrolpane.
Just wonder why if you need to b using Rokstories at all, as I am sure this can be handled by K2.
I would suggest that you use the latest version, V2.2
Try the new version and could you let me know why which features you need in rokstories.
Thanks.
Simon
K2Joom.com
From you explanation it seems more of a conflict between rokstories an JScrolpane.
Just wonder why if you need to b using Rokstories at all, as I am sure this can be handled by K2.
I would suggest that you use the latest version, V2.2
Try the new version and could you let me know why which features you need in rokstories.
Thanks.
Simon
K2Joom.com
Please Log in or Create an account to join the conversation.
- ako
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 8 months ago #81035
by ako
Replied by ako on topic JScrollpane conflict
Hi Simon,
Thanks for your quick reply.
I've only known K2 from using RokStories in order to get the nice image gallery effect i.e. with thumbnails and nice in-between transition effect - if you know what I mean.
I'll give V2.2 a shot and see if I can achieve what I need only with K2. Never thought of it actually, what a noob ..
Thanks for your help!
K2Joom said:Hi Ako,
From you explanation it seems more of a conflict between rokstories an JScrolpane.
Just wonder why if you need to b using Rokstories at all, as I am sure this can be handled by K2.
I would suggest that you use the latest version, V2.2
Try the new version and could you let me know why which features you need in rokstories.
Thanks.
Simon
K2Joom.com
Thanks for your quick reply.
I've only known K2 from using RokStories in order to get the nice image gallery effect i.e. with thumbnails and nice in-between transition effect - if you know what I mean.
I'll give V2.2 a shot and see if I can achieve what I need only with K2. Never thought of it actually, what a noob ..
Thanks for your help!
K2Joom said:Hi Ako,
From you explanation it seems more of a conflict between rokstories an JScrolpane.
Just wonder why if you need to b using Rokstories at all, as I am sure this can be handled by K2.
I would suggest that you use the latest version, V2.2
Try the new version and could you let me know why which features you need in rokstories.
Thanks.
Simon
K2Joom.com
Please Log in or Create an account to join the conversation.
- ako
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 7 months ago #81036
by ako
Replied by ako on topic JScrollpane conflict
Solved it - I think.
This is my header script now:
[script type="text/javascript"]
jQuery.noConflict();
jQuery(function()
{
// this initialises the demo scollpanes on the page.
jQuery('.scroll-pane').jScrollPane();
});
[/script]
Seems to work fine. At least now I can have both my JScrollpane and RokStories showcase gallery scroller module working.
The only warning I'm getting now is:
Warnung: Fehler beim Verarbeiten des Wertes für 'font-size'. Deklaration ignoriert.
Quelldatei: http://localhost/sylverice/components/com_k2/css/k2.css
Zeile: 269
But otherwise, seems everything is working on FF 3.5.7, IE7 and IE8 no problems.
This is my header script now:
[script type="text/javascript"]
jQuery.noConflict();
jQuery(function()
{
// this initialises the demo scollpanes on the page.
jQuery('.scroll-pane').jScrollPane();
});
[/script]
Seems to work fine. At least now I can have both my JScrollpane and RokStories showcase gallery scroller module working.
The only warning I'm getting now is:
Warnung: Fehler beim Verarbeiten des Wertes für 'font-size'. Deklaration ignoriert.
Quelldatei: http://localhost/sylverice/components/com_k2/css/k2.css
Zeile: 269
But otherwise, seems everything is working on FF 3.5.7, IE7 and IE8 no problems.
Please Log in or Create an account to join the conversation.