Maximenu CK Mobile - JQuery conflict (I think)

More
9 years 5 months ago #31004 by Eelco
Hi,

I experience what appears to be a Jquery conflict between Maximenu CK Mobile and the Bootstrap template that our site uses.

The mobile menu (legacy enabled) works correctly in our main, deployed installation: www.vegatopia.com/vega/ . However, this template needs Jquery v1.11 in order to work correctly (currently, the front-end editor does not work - input boxes and labels 'jump away' when you move the mouse over them).

When I load Jquery into the template (in index.php: "<script defer src="templates/<?php echo $this->template ?>/js/jquery.js"></script>"), the mobile menu does not load anymore for the category blog. Oddly enough, it does load for individual articles, but only with legacy enabled. When I disable legacy, the mobile menu doesn't work at all. The 'non-functional mobile menu' (with Jquery v1.11 loaded by the template) is in our test installation: www.vegatopia.com/tijdelijk/vega35/

Our Joomla installation is uptodate (v3.4.5) and I installed the latest version of Maximenu CK Mobile (2.0.6). Legacy is enabled. I tried to solve the issue with the plugin Jquery Easy, alas with no result.

Am I doing something wrong or is this actually a bug in the template or in Maximenu CK Mobile? Is there a workaround?

Many thanks in advance for looking into this and keep up the good work!

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #31007 by ced1870
Hi
by default in joomla 3 the jQuery version is 1.11, check it here
view-source:http://www.vegatopia.com/tijdelijk/vega35/media/jui/js/jquery.min.js

you must NOT include another jQuery instance, else you will kill all reference to anything that has been declared before, and then return a lot of problems.

I don't know why your template does not work, but you must make it work correctly with the jQuery that is already loaded by the Joomla! 3 API.

CEd

PS : the legacy option of the maximenu mobile is only for the css classes used by an old version, this has no relationship with jQuery

Joomlack Webmaster and Developer
The following user(s) said Thank You: Eelco

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #31273 by mwsmws
Hi, I've got joomla 3.4.5 and the jQuery version is 1.11.3, I checked in test.groupseres.com/testesp/media/jui/js/jquery.min.js . and I installed the latest version of Maximenu CK Mobile (2.0.7), but Maximenu CK Mobile does not work.

I hope a solution.

Thank you.
Attachments:

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #31279 by ced1870
Hi
try to unpublish the Ari image slider and tell me. You have in fact multiple times jQuery loaded, this the well known issue (by my side) where some developpers don't respect the joomla! API
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #31282 by mwsmws
Hello, I disabled Ari image slider, but still not working.

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #31283 by ced1870
ok, now please check if you have a acymailing module, if yes try to unpublish also and tell me
Something loads another jQuery and we need to find what :)

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.217 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 2367 guests and 4 members online