• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • Tutorials
    • API Docs
  • Community
    • Gallery
    • Blog »
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • YUI 2
    • YUI Compressor
    • YUI Doc »
    • YUI Builder
    • YUI PHP Loader
    • YUI Test
    • YUI Website
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • FAQ
  • Developer FAQ
  • Developer Guide
  • Module Setup

Tag Cloud

apipkin table datatable css nzakas node io lsmith satyam davglass ericf solmsted async event foxxtrot jafl caridy greghinch plugin yql animation model form widget liferay

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    YQuery (gallery-yquery) on cdn

    Last Updated: 07/19/10
    + 4 -

    Lauren Smith

    YUI Contributor

    See 1 more by this user.

    Created: 03/29/10
    Last CDN Push: 03/30/10
    Build Tag: gallery-2010.03.30-17-26
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.1.1
    Free for use.

    YQuery is a module that makes loading jQuery, and jQuery plugins dead simple. It uses the use() syntax that you're familiar with for loading YUI3 modules and offers loads of features.

    Features:

    • Tiny footprint
    • Auto detection for including the jQuery library
    • Run multiple versions of jQuery on the same page with no conflicts
    • Prevents conflicts between jQuery and other libraries
    • Quickly shift between the development and production jQuery codesets

    • Tags:
    • get
    • kickballcreative
    • jquery
    • yquery
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    The most typical implementation of YQuery is to pass in an array of script paths to for YQuery to load. Check out the Examples page for more options to use.

    Code Sample

    <script src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"></script>
    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2010.03.30-17-26'
    }).use('gallery-yquery', function(Y) {
     
        var jQueryPlugins = ['swift.js', 'gps.jquery.js']; // YQuery accepts both an array of plugins or just a single string
        Y.YQuery().use( jQueryPlugins, function(e) {
     
            // jQuery loaded do $() functions here now
     
        });
     
        // or just load jQuery
     
        Y.YQuery().use( function(e) {
     
            // jQuery loaded do $() functions here now
     
        });
     
        // or override the latest jQuery version and use an older version
     
        var jq = Y.YQuery();
        jq.version = '1.3.2';
        jq.use( function() {
     
    	  alert( 'jquery ' + $.fn.jquery + ' loaded' ); // Will show that 1.3.2 loaded successfully
     
        });
     
        // More options available just check out the examples link
     
    });

    Forum Posts

    Subject Author Date
    So freaking awesome Andrew Wooldridge 03/29/10
    Re: So freaking awesome Lauren Smith 03/29/10
    YUI 3.5.0 Roman Stachura 04/15/12

    © 2006-2011 Yahoo! Inc. All rights reserved.
    All code on this site is licensed under the BSD License unless stated otherwise.
    About This Site · Security Contact Info