Keyword

Ordering k2.js and jquery.js

  • JeffGreenwood
  • JeffGreenwood's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 weeks ago #118116 by JeffGreenwood
Ordering k2.js and jquery.js was created by JeffGreenwood
I have read as much as I can find and I have verified I have the k2.js loading before jquery so I get the same error many others get:

ReferenceError: jQuery is not defined

var $K2 = jQuery.noConflict();

however, the only solution I see that will fix this is reverting my k2 upgrade or removing it altogether. Is there a way to re-order them. I have not seen this in any of the threads on this forum or others.

Can anyone help? It has really jacked up my site.
Thanks,
Jeff

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 3 weeks ago #118117 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Ordering k2.js and jquery.js
Hello Jeff,

If you are using the remote copy of jQuery, then perhaps it is not loading for any reason, so try to use the local copy.

Go to the K2 parameters screen, and select the local copy, let me know how it is going.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • JeffGreenwood
  • JeffGreenwood's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 weeks ago #118118 by JeffGreenwood
Replied by JeffGreenwood on topic Re: Ordering k2.js and jquery.js
I used jquery Easy and it has solved the ordering problem, but many problems are still remaining. I'm not sure what to make of it.

Add File is not allowing me to upload a screengrab jpg of the settings
Do NOt Load...
Load a remote...

is the settings i have currently.
Attachments:

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 3 weeks ago #118119 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Ordering k2.js and jquery.js
The settings shows you don't use jQuery from K2, therefore the Load a remote parameter is not affecting jquery.

I meant to use the jQuery of K2 and Load a local copy, I think this will solve your problem.

If you can send the site url it can help to find out the problem quickly.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • JeffGreenwood
  • JeffGreenwood's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 weeks ago #118120 by JeffGreenwood
Replied by JeffGreenwood on topic Re: Ordering k2.js and jquery.js
Hi, my site is here:

www.concretedisciples.com

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 3 weeks ago - 11 years 3 weeks ago #118121 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Ordering k2.js and jquery.js
Hello Jeff,

I noticed 2 wrong jquery urls in the html source:
ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.min.js
ajax.googleapis.com/ajax/libs/jqueryui/1.9/themes/base/jquery-ui.css

the correct urls should be:
ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js
ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css

just to add .0 to the 1.9 segment.

please find these urls and modify them to make jquery works correctly.

EDIT:
I have noticed another issue, you are using jquery versions 1.8, and jquery ui version 1.9.0, I think you should use the same version in both.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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


Powered by Kunena Forum