Keyword

Javascript Conflict - Any Javascript Experts?

  • Lance Thompson
  • Lance Thompson's Avatar Topic Author
  • Offline
  • New Member
  • Making the Web Work For You
More
12 years 11 months ago #57587 by Lance Thompson
Javascript Conflict - Any Javascript Experts? was created by Lance Thompson
Any javascript experts in da house?

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.

More
12 years 11 months ago #57588 by esedic
You have multiple jQuery libraries loading.

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.

More
12 years 11 months ago #57589 by SDKiller
Check also the order of plugins.

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
  • Lance Thompson's Avatar Topic Author
  • Offline
  • New Member
  • Making the Web Work For You
More
12 years 11 months ago #57590 by Lance Thompson
Replied by Lance Thompson on topic Re: Javascript Conflict - Any Javascript Experts?
Thank you for your help!

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.

More
12 years 11 months ago - 12 years 11 months ago #57591 by L. Arnold
On a similar topic, when I install K2 is is breaking my SSL.

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.

More
12 years 11 months ago #57592 by L. Arnold
In K2 Paramaters that line can be removed by disabling the loading of JQuery.

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.

More
12 years 9 months ago #57593 by Travis Metcalfe
Replied by Travis Metcalfe on topic Re: Javascript Conflict - Any Javascript Experts?
Hey Lance,

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.


Powered by Kunena Forum