[ 2 posts ]

michael

  • Username: mixersoft
  • Joined: Wed Oct 14, 2009 2:02 am
  • Posts: 13
  • IRC: mixersoft
  • Offline
  • Profile

how do you bootstrap AUI together with YUI?

Post Posted: Thu May 05, 2011 3:17 am
+0-
I'm trying to use the AUI classes together with YUI3 and I'm having difficulties.

If I want to mix YUI classes together with AUI classes in the same sandbox, can I
1) load AUI classes into my YUI sandbox, i.e. YUI().use('aui-base'), or
2) do I load my YUI classes from within the AUI sandbox?

I've also defined a number of my own classes using Y.Loader module definitions that use YUI3 classes. Can I load these classes the same way from AUI().use()?

michael

  • Username: mixersoft
  • Joined: Wed Oct 14, 2009 2:02 am
  • Posts: 13
  • IRC: mixersoft
  • Offline
  • Profile

Re: how do you bootstrap AUI together with YUI?

Post Posted: Mon May 09, 2011 5:49 pm
+0-
figured it out. FWIW,
Code:
<script src="alloy-1.0.1/build/aui/aui.js" type="text/javascript"></script>

and then
Code:
AUI(yuiConfig).use('*', function(Y){
    // using Y instead of A, all my yui3 classes are loaded by AUI
});
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum