NYCPHP Meetup

NYPHP.org

[joomla] Enabling Jquery in the template?

Todd Sugiyama toddsugi at gmail.com
Sun Jul 15 10:07:09 EDT 2012


Janet,

I've had this same problem before.  it was the same conflict between Jquery and Mootools.
In my case i had Jquery included my template file (index.php), once I took it out of the template file and only included it on the modules that need Jquery, it worked.   However i also received the guidelines below from an experienced jquery extension developer, it may help you.


1. include mootools first
2. include jquery after that
3. include jquery noconflict code (google to find it)
4. use the 'jQuery' instead of '$' in all the codes written for jquery (plugin or custom code) because '$' is reserved for mootools

this is just a summery. you should find many articles on 'how to use jquery with joomla'


- Todd



On Jul 15, 2012, at 6:04 AM, Janet Sullivan wrote:

> Thanks Matt...so it would be possible that the template doesn't even load it at all?
> And it only is being loaded by the module extensions?   
> 
> Seaching around I found these two extensions:
> jquery Easy 
> http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327
> 
> and SC jquery
> http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/7230
> 
> and this plugin to disable mootools
> http://extensions.joomla.org/extensions/core-enhancements/performance/mootools/15748
> 
> I've tried all of them, some of them in various combinations and haven't found a solution yet.
> 
> The web is full of conflicting information about javascript and whether mootools should  be disabled or not.
> Some say its the only way to make the website work, others say removing it is the only way....
> 
> With so much conflicting information, I would love to see a subject matter expert speak at
> Joomla day NYC to separate the facts from the fiction on this topic.
> 
> I'm certainly no expert, but I find it odd that people develop plug ins 
> to remove/fix core components......
> And why are the javascript libraries so problematic?
> 
> Any one else interested in this topic?
>  
> Janet Sullivan
> 
> 
> From: Matt Thomas <matt at betweenbrain.com>
> To: NYPHP SIG: Joomla <joomla at lists.nyphp.org> 
> Sent: Saturday, July 14, 2012 3:46 PM
> Subject: Re: [joomla] Enabling Jquery in the template?
> 
> Hi Janet,
> As Joomla does not load jQuery from the core, at least not yet, the template would likely have its own technique for loading it. I'd start by checking the template parameters.
> Best,
> Matt
> Sent from my phone that uses an open source operating system.
> On Jul 14, 2012 9:41 AM, "Janet Sullivan" <jmsullivan50 at yahoo.com> wrote:
> I am having a problem caused by a  conflict between 2 jquery extenstions... (widgetkit and xpert scroller)
> 
> The reported fix is to 
> "Enable the load of jquery in the theme and disable jquery from loading in all the modules"
> 
> I can't find where to enable in the theme or disable it in each module...any hints on where to look?
> Is  the enable/disable  theme specific?
>  
> Thanks!
> Janet
> 
> 
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
> 
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
> 
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
> 
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
> 
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
> 
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
> 
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
> 
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
> 
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/joomla/attachments/20120715/8988dbca/attachment.html>


More information about the Joomla mailing list