0
Welcome Guest! Login
0 items Join Now

Joomla 3 access jQuery?

    • MiD-AwE's Avatar
    • MiD-AwE
    • Jr. Rocketeer
    • Posts: 35
    • Thanks: 1

    Joomla 3 access jQuery?

    Posted 12 years 5 months ago
    • One of the most exciting features of Joomla 3 is the native jQuery. I am trying to utilize jQuery in Gantry and I'm curious if Gantry has a special way of doing it.

      The information that I've found in the Joomla Sources suggest using:

      JHtml::_('jquery.framework');

      For Gantry, where is the correct place to put this in, or does Gantry have a better way to do this?

      Thank you.
    • A wise person will not attempt to "reinvent the wheel" but use it along the way to greater things. GNU/GPL is the wheel of our age.
    • Tenil's Avatar
    • Tenil
    • Newbie
    • Posts: 1
    • Thanks: 0

    Re: Joomla 3 access jQuery?

    Posted 11 years 8 months ago
    • Same problem...
    • MiD-AwE's Avatar
    • MiD-AwE
    • Jr. Rocketeer
    • Posts: 35
    • Thanks: 1

    Re: Joomla 3 access jQuery?

    Posted 11 years 8 months ago
    • I still have received no answer. I just use the standard loading process suggested on the jQuery website since it makes more sense than risk breaking Gantry over it.

      <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
      <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.0.min.js"><\/script>')</script>

      That will do. At least this way if jQuery is already loaded then it will not load again. Hope this helps.
    • A wise person will not attempt to "reinvent the wheel" but use it along the way to greater things. GNU/GPL is the wheel of our age.

Time to create page: 0.083 seconds