{"id":6337,"date":"2014-04-16T09:33:33","date_gmt":"2014-04-16T09:33:33","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/16\/conflict-with-mootools-accordian-and-jquery-collection-of-common-programming-errors-2\/"},"modified":"2014-04-16T09:33:33","modified_gmt":"2014-04-16T09:33:33","slug":"conflict-with-mootools-accordian-and-jquery-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/16\/conflict-with-mootools-accordian-and-jquery-collection-of-common-programming-errors-2\/","title":{"rendered":"Conflict with Mootools accordian and Jquery-Collection of common programming errors"},"content":{"rendered":"<p>I am using mootools only for accordion .<\/p>\n<p>script on separate page without any query works fine but the page on which has Jquery is causing lots of issues . I tried various variations but the error persists<\/p>\n<pre><code>\n    \n    \n    \n    \n\n\n     \n         jQuery.noConflict()\n         (window.addEvent('domready', function () {\n             new Fx.Accordion(jQuery('accordion'), '#accordion h2', '#accordion .content');\n         })(jQuery);\n\n    \n<\/code><\/pre>\n<p>Error on browser console<\/p>\n<pre><code>Uncaught ReferenceError: Class is not defined mootools-art-0.87.js:182\nUncaught SyntaxError: Unexpected token ; navigation-test.html:30\nevent.returnValue is deprecated. Please use the standard event.preventDefault() instead.\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am using mootools only for accordion . script on separate page without any query works fine but the page on which has Jquery is causing lots of issues . I tried various variations but the error persists jQuery.noConflict() (window.addEvent(&#8216;domready&#8217;, function () { new Fx.Accordion(jQuery(&#8216;accordion&#8217;), &#8216;#accordion h2&#8217;, &#8216;#accordion .content&#8217;); })(jQuery); Error on browser console Uncaught [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6337","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6337"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6337\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}