NYCPHP Meetup

NYPHP.org

[joomla] Enabling Jquery in the template?

Matt Thomas matt at betweenbrain.com
Sun Jul 15 16:49:08 EDT 2012


You may find the JB Library
Plugin<http://www.joomlabamboo.com/joomla-extensions/jb-library-plugin-a-free-joomla-jquery-plugin>from
Joomla Bamboo very handy in this case.

It will not only load jQuery for you, but remove other references to the
jQuery library to help avoid conflicts.

Best,

Matt Thomas
Founder betweenbrain <http://betweenbrain.com/>™
Lead Developer Construct Template Development
Framework<http://construct-framework.com/>
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain



On Sun, Jul 15, 2012 at 4:16 PM, Janet Sullivan <jmsullivan50 at yahoo.com>wrote:

> Todd:  Thanks!
> Sounds like a non-trivial undertaking, but I will give it a go.
> The template developer confirmed that the template does include
> jquery to support accordian menus and a few other things, however,
> had no idea how to turn it off.
>
> In the meantime, adding all of the modules to fix problems with other
> components
> wound up exactly as I expected.....One big mess, with nothing working
> right anymore!
>
> The good news is that when things get this screwed up, you wind up
> learning a ton of stuff!
> Still would love a subject matter expert to speak on the topic at NYC
> Joomla day, even if
> it were a cookbook approach, similar to the advice you have given me.
>
>   There  is no shortage of conflicting information on the web about
> jquery, mootools and joomla.
> Janet
>
>
>   ------------------------------
> *From:* Todd Sugiyama <toddsugi at gmail.com>
>
> *To:* NYPHP SIG: Joomla <joomla at lists.nyphp.org>
> *Sent:* Sunday, July 15, 2012 10:07 AM
>
> *Subject:* Re: [joomla] Enabling Jquery in the template?
>
> 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
>
>
>
> _______________________________________________
> 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/338e6b84/attachment.html>


More information about the Joomla mailing list