How can I use YUI Node with jQuery? -


i'm using portal software uses yui library native js framework , want use jquery on various yui nodes.

can please show me how done? i've tried following no success...

yui().use('node', function (y) {     var oneelementbyid     = y.one('#foo');     $(oneelementbyid).css('color','red');  }); 

for you're doing in example, like:

var nativedomelementbyid = y.one('#foo').getdomnode(); $(nativedomelementbyid).css('color','red'); 

in general, fluency between yui , jquery, see http://jsrosettastone.com site kevin mentioned. have careful when "crossing streams" between yui , jquery, use different abstractions around nodes & events.

if you're working jquery , yui in yui sandbox -- say, want load jquery plugin alongside yui, recipe yui 3 cookbook might helpful: https://github.com/evangoer/yui3-cookbook/blob/master/examples/loading/use_jquery.html

and if stuck, drop #yui irc channel on freenode.net. luck!


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -