Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7584587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:57:32+00:00 2026-05-30T18:57:32+00:00

Picking up on YUI and see some opportunities in using the YQuery tool to

  • 0

Picking up on YUI and see some opportunities in using the YQuery tool to load jQuery in a specific implementation where the YUI 3 sandbox approach would be useful.

However, I am struggling to figure out how I can access jQuery functions/variables defined within the YQuery sandbox.

Please see below:

<script type="text/javascript">
    YUI().use('gallery-yquery', function(Y) {
        var jq = Y.YQuery();
        jq.version = '1.7.1';
        jq.use( function() {
            $.someFunc = function() {
                // Some Jquery actions
            }
        });
    });
</script>

...

<input type="button" onclick="$.someFunc();" value="someTest"/>

Is there a way I can get at “$.someFunc” such as from the button?

Note that this example just happens to be YQuery and that the question is on whether/how functions/variables defined within the YUI “sandbox” can be accessed from outside this on the same page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:57:33+00:00Added an answer on May 30, 2026 at 6:57 pm

    Use the return value of the use() method, without specifying a callback function as the last parameter.
    I guess you might run into concurrency issues if using YUI dynamic loader since you won’t be able to detect when the given instance has every needed dependencies loaded and ready.

    var foo = YUI().use("yui", "event");
    alert(foo.guid());
    alert(foo.Event.generateId(document.body));
    

    via: yuilibrary

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm picking up jQuery and jQuery UI and I would like some suggestions on
I am just picking up on using jquery and have managed to put the
I am picking my way through some c# code I inherited, and trying to
I'm considering picking up some very rudimentary understanding of assembly. My current goal is
I have noticed some developers picking up new skills and moving from one platform
I'm trying to implement picking using Pyglet's OpenGL wrapper, but I'm having trouble converting
I am using gallery picker for picking an image from gallery. The photos taken
Can someone give me some pointers on picking up the user's MAC address from
I am picking up maintenance of a project and reading code: I see two
I'm in the middle of picking tools to load test my Ruby on Rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.