- Posts: 6
COMMUNITY FORUM
comment-form error
- pava
-
Topic Author
- Offline
- New Member
$("comment-form").addEvent is not a function
$('comment-form').addEvent('submit', function(e){
k2.js (line 13)
I dont use coment. Please how I can resolve this problem? From admin I turn off all coments in K2, but steel have this error in Console.
Thank you so much foe any help. Regards
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- pava
-
Topic Author
- Offline
- New Member
- Posts: 6
Regards
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
pava said:Hello, thank you for replay. I use last version 2.2 Please you can just write me how I can know what I am use on jQuery or where find and fix? Regards
Please Log in or Create an account to join the conversation.
- pava
-
Topic Author
- Offline
- New Member
- Posts: 6
web site is on: www.pag-apartments.eu In K2 have install Simple Image Gallery PRO and on same page is Breezing form. And that is all. Breezing form now is on frame. When I put Freezing form without frame, is not work. I post to Breezing form and they find error from K2, and told me that have to post you.
After I check and is some error in Console, what I post.
This error you can find on: www.pag-apartments.eu/hr/ponuda-apartmana-u-objektu-villa-milla/item/15-apartman-1-milla.html
Please help me. Best regards
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
pava said:Hello, I use long time component from JoomlaWorks, special very happy with Frontpage SlideShow. web site is on: www.pag-apartments.eu In K2 have install Simple Image Gallery PRO and on same page is Breezing form. And that is all. Breezing form now is on frame. When I put Freezing form without frame, is not work. I post to Breezing form and they find error from K2, and told me that have to post you.
After I check and is some error in Console, what I post.
This error you can find on: www.pag-apartments.eu/hr/ponuda-apartmana-u-objektu-villa-mi...
Please help me. Best regards
Please Log in or Create an account to join the conversation.
- pava
-
Topic Author
- Offline
- New Member
- Posts: 6
Please see. www.kodo.cz/sample/2010-03-18_122857.png Evident is error on k2.js (line 13)
Is it error of k2 or another component?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
pava said:Hello, No more componet there now. Just Breezing form and K2. I post to Breezing form and they told me that have to write to K2.
Please see. www.kodo.cz/sample/2010-03-18_122857.png Evident is error on k2.js (line 13)
Is it error of k2 or another component?
Please Log in or Create an account to join the conversation.
- pava
-
Topic Author
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
pava said:Hi, thank you for help. Please just what is SIG engine? and how I can set them to mootools?
Please Log in or Create an account to join the conversation.
- Casper Voogt
-
- Offline
- Junior Member
- Posts: 22
Error: $("comment-form").addEvent is not a function
Source File: www.mysite.com/joomla/components/com_k2/js/k2.js
Line: 13
I have K2 comments disabled, so why is k2.js trying to use addEvent on "comment-form" when there is no comment form? I had a Front Page Slideshow module showing, but disabled it. I also disabled my Superfish module and in fact all my modules, including mod_k2items. That fixed it. When I turned mod_k2items back on, the problem happened again. So it seems mod_k2items is conflicting with K2's own JS.
Please Log in or Create an account to join the conversation.
- Casper Voogt
-
- Offline
- Junior Member
- Posts: 22
Update on my related issue with mod_k2items;
I was able to fix this by overriding /modules/mod_k2items/tmpl/default.php and removing these lines;
<script type="text/javascript" src="modules/mod_k2items/assets/jquery.min.js"></script>
<script type="text/javascript" src="modules/mod_k2items/assets/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", <?php echo $autoplay == 1 ? $speed : 0?>, true);
});
</script>
Casper Voogt said:
I got this error too;
Error: $("comment-form").addEvent is not a function
Source File: www.mysite.com/joomla/components/com_k2/js/k2.js
Line: 13
I have K2 comments disabled, so why is k2.js trying to use addEvent on "comment-form" when there is no comment form? I had a Front Page Slideshow module showing, but disabled it. I also disabled my Superfish module and in fact all my modules, including mod_k2items. That fixed it. When I turned mod_k2items back on, the problem happened again. So it seems mod_k2items is conflicting with K2's own JS.
Please Log in or Create an account to join the conversation.
- mojito
-
- Offline
- Junior Member
- Posts: 26
This js conflict stuff does everyones head in. Once upon a time we learnt that standardisation was good. Lets have a big scrap in the car park and the winner gets their lib used by everything once and for all.
:(
Please Log in or Create an account to join the conversation.
- mojito
-
- Offline
- Junior Member
- Posts: 26
$("comment-form").addEvent is not a function
I dont think they have an option to run in no conflict mode. Does k2 have this ability.
Please Log in or Create an account to join the conversation.
- mojito
-
- Offline
- Junior Member
- Posts: 26
Please Log in or Create an account to join the conversation.
- Francesc Llorens
-
- Offline
- New Member
- Posts: 8
(See this post for insights about the problem:preventing-jquery-and-mootools )
I put a line calling JQuery 1.4.2 on the index.php of my template. Then, the familiar error of the blank page with the "refreshing" tex after k2 comment showed.
Also, the error console showed an error from k2.js, "$("comment-form").addEvent is not a function".
So I've ripped off the line calling the jquery, installed the JB Library plugin from Joomla Baboo (JB Library) and on the plugin parametres I chose the JQuery I was trying to load. The remove parameters and Mootools parameters weren't changed.
Now my template works perfect.
So, the problem is a JQuery conflict, search carefully what javascript libraries you load.
Please Log in or Create an account to join the conversation.
- Francesc Llorens
-
- Offline
- New Member
- Posts: 8
Please Log in or Create an account to join the conversation.