Shape 5

Joomla Templates => Helion - Club => : aivenho January 30, 2014, 05:01:02 AM



: jQuery
: aivenho January 30, 2014, 05:01:02 AM
I have a problem that native jQuery used in module is overwritten by older jQuery libraries which are added by Helion template as it is not using native Joomla jQuery.

:
<script type="text/javascript">//<![CDATA[
if(jQuery.easing.easeOutExpo==undefined){
document.write('<script src="http://54.246.100.202/templates/helion/js/jquery/jquery-ui.min.js"><\/script>');
}
//]]></script>

How could I solve this? Could I comment out the header code from above? And in which file?

I have altered the paths to jquery files in /templates/helion/vertex/css_and_js.php but it messed up the Flex5 menu...


: Re: jQuery
: mikenicoll January 30, 2014, 10:37:39 PM
Hello,

Can you post a URL of this?

-Mike


: Re: jQuery
: aivenho January 31, 2014, 05:57:18 AM
Sent you PM.

Module developer sugests you to implement and use in your templates this: http://docs.joomla.org/J3.2:Javascript_Frameworks.

For Joomla 2.5 then they offer free system plugin to update jQuery to Joomla 3 style: http://www.perfect-web.co/blog/joomla/62-jquery-bootstrap-in-joomla-25


: Re: jQuery
: mikenicoll February 02, 2014, 04:21:14 PM
Hello,

The version of jquery-ui.min.js that the Template is packaged with was the latest available version when the Framework was updated. If you are commenting out this script that is the reason the Flex Menu wouldn't work since it requires the jquery-ui JavaScript.  You can comment this out if needed but the module you are using must have this part of the Jquery library in order for the menu to operate.

-Mike


: Re: jQuery
: smiles4her February 09, 2014, 03:42:09 AM
I believe I'm having an issue with jquery being loaded more than once on one of my pages because of a 3rd-party extension (commedia) seen here at: http://www.crosspoint.org/index.php/downloads (http://www.crosspoint.org/index.php/downloads) I've tried a few different tricks, but it always leads to the drop-down menus not working OR the PLAY button (via the extension) on the downloads page not working. I can never get both to work at the same time. I'd be grateful for any suggestions. (For now, I have it set in favor of the template's drop-down menus). Thanks!

Jason

P.S. We've received a lot of great comments/compliments on our use of the new Helion template. :) Many thanks.


: Re: jQuery
: mikek February 10, 2014, 08:53:57 AM
Hello,

Jquery can be called multiple times on the same page, but it must be called in no-conflict mode which your component is not doing:

  <script src="http://www.crosspoint.org//components/com_commedia/classes/jquery.min.js" type="text/javascript"></script>
  <script src="http://www.crosspoint.org//components/com_commedia/players/jquery.jplayer.min.js" type="text/javascript"></script>

That's a component problem.

Also, it appears you are running Vertex 3 on Joomla 2.5. Only Vertex 2 and Joomla 2.5 templates should be used on Joomla 3.X


: Re: jQuery
: mikenicoll February 11, 2014, 01:01:23 AM
Also, it appears you are running Vertex 3 on Joomla 2.5. Only Vertex 2 and Joomla 2.5 templates should be used on Joomla 3.X

The above is a typo... He meant to say Vertex 3.X is designed for Joomla 3.0 and Vertex 2.X is designed for Joomla 2.5. You are currently running the wrong version of Vertex on your site and need to repatch your files with the correct version for your CMS.

-Mike