COMMUNITY FORUM
Javascript Conflict - Any Javascript Experts?
- Lance Thompson
-
Topic Author
- Offline
- New Member
- Making the Web Work For You
I need help tracking down a javascript conflict that looks like it's coming from K2 (as far as I can tell). I've pretty much disabled everything I can and it still has errors.
The error message I see is:
Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
/components/com_k2/js/k2.js:12
None of my images pop up was my clue and it also had a conflict with another extension that tipped me off and I uninstalled.
I'm using Joomla 1.524, & K2 2.4.1. I'm also using the latest Google Chrome but th
My site is: www.blueskywebworx.com
I've pretty much disabled everything including JCE (which I thought might be causing/contributing to it).
Any help would be greatly appreciated.
Lance Thompson - Blue Sky Web Worx
Web Design, SEO, Graphic Design
www.BlueSkyWebWorx.com
Please Log in or Create an account to join the conversation.
- esedic
-
- Offline
- Senior Member
- Posts: 50
For example, on this site www.blueskywebworx.com/component/k2/itemlist/category/14.html you have jQuery loaded 3 times:
ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
www.blueskywebworx.com/modules/mod_swmenupro/jquery-1.2.6.pack.js
Try to load only one.
Another thing to consider is to load Mootools before jQuery.
And btw, you also have dead link in your menu (Our Work - View Portfolio)
Please Log in or Create an account to join the conversation.
- SDKiller
-
- Offline
- Junior Member
- Posts: 35
If you enable System - Mootools Upgrade it should be loaded before System - K2 plugin
Russian K2 support on joomlaforum.ru
Please Log in or Create an account to join the conversation.
- Lance Thompson
-
Topic Author
- Offline
- New Member
- Making the Web Work For You
I was able to track down the issue which was (for some reason) Phil Taylor's Forms for Joomla. Odd, I use it all the time without issue. I
Other than disabling everything, is there a tool or easier way to see what extensions load JQuery? I could see the problem in Google Chrome's javascript console but couldn't see how to tell what extension was loading them.
Lance
Lance Thompson - Blue Sky Web Worx
Web Design, SEO, Graphic Design
www.BlueSkyWebWorx.com
Please Log in or Create an account to join the conversation.
- L. Arnold
-
- Offline
- New Member
- Posts: 14
It is loading: "ajax.googleapis.com: rather than "ajax.google.apis.com" on the way into loading K2
How Could I get this to load as "https:" instead?
see below.. thank you
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js">
<script src="/components/com_k2/js/k2.js" type="text/javascript"></script>
<script src="/media/plg_fancybox/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="/media/plg_fancybox/js/jquery.fancybox-1.3.1.pack.js" type="text/javascript"></script>
<script src="/templates/rt_paradox_j16/js/gantry-module-scroller-mt1.2.js" type="text/javascript"></script>
<script src="/libraries/gantry/js/gantry-smartload.js" type="text/javascript"></script>
<script src="/libraries/gantry/js/gantry-inputs.js" type="text/javascript"></script>
<script src="/modules/mod_roknavmenu/themes/fusion/js/fusion.js" type="text/javascript"></script>
<script type="text/javascript">
Please Log in or Create an account to join the conversation.
- L. Arnold
-
- Offline
- New Member
- Posts: 14
I believe this will work for me. Thank you on the related post for the guidance.
Also a potential "cross issue" in FPSS as noted here:
forum.joomlaworks.gr/frontpage-slideshow-(for-joomla!)/disable-jquery-in-fpss-3-0/
Please Log in or Create an account to join the conversation.
- Travis Metcalfe
-
- Offline
- New Member
- Posts: 11
Checking out your site, it looks as though you got this figured out? Is there anything you can suggest for getting the js libraries to load in the right order? I am having a similar issue and posted a new topic about it...
Could you share the header of your index.php?
Thanks for any help that you can provide!
Please Log in or Create an account to join the conversation.