Hmm, you might be onto something. With the default rhuk_milkyway template it works fine. Mootools.js was referenced with the default theme and our theme (which is a modified version of rhuk_milkyway - mostly CSS changes). One thing I noticed: I was getting the javascript error "$("comment-form").addEvent is not a function" on every page, not just the comment page. Why would the k2.js line "if ($('comment-form')) { " be true if there wasn't anything with this value on the page? I put an alert in an it indeed was evaluating as true even though there was nothing with this value in the HTML file.
Thanks again for your continued help.
Jim
Lefteris Kavadas said:Hi. Try to switch to the default Joomla! template. Also make sure that mootools.js is loaded.
Jim Lahm said:Thanks for the prompt reply. I am using the latest version of K2 with the bundled templates. I am getting a single JavaScript error (as noted below) that is coming from k2.js. If this is the only javascript error, does it necessarily mean it is a K2 issue? I'm at a loss as how to track down the problem any further right now. Why wouldn't k2.js be able to find the addEvent function? Many thanks.
Lefteris Kavadas said:Hi. Again for everyone having problems with the comments. Please ensure that you are using the latest version of K2 with the bundled templates and tha you get no javascript errors on your page. If you get a javascript error it could be coming from any extension or even from your template. Jim Lahm said:I am seeing this problem also. The form has the correct "comment-form" id. I get a single javascript error on the page with the comment form of "$("comment-form").addEvent is not a function" in k2.js (line 14). After submitting the comment, it goes to index2.php and displays the message "Comment added! Refreshing page..." but the page is never refreshed. Any help from the K2 development team would be appreciated! Jim