Mixing jQuery and YUI together in an app, is it easily possible? Mixing jQuery and YUI together in an app, is it easily possible? jquery jquery

Mixing jQuery and YUI together in an app, is it easily possible?


Speaking from some experience in developing a small tool myself, I've used YUI's rich control set with Prototype for DOM manipulation in the past and experienced no issues. Admittedly, this was a small tool that didn't use a wide array of the controls.

Even so, I'm always hesitant to use multiple frameworks on my web projects; however, if you're only using jQuery's DOM functionality and YUI's control functionality, then I think you're fine - there's not really a conflict of interest there. Plus, with jQuery's noConflict() mode and YUI's namespacing, the two frameworks really shouldn't trump one another.


This is an old question, but wanted to add a link to jQuery's doc on this topic...

http://docs.jquery.com/Using_jQuery_with_Other_Libraries


I regularly use jQuery with YUI (jQuery for most things, YUI for the UI elements) with no trouble.

Note that YUI 3 will introduce jQuery style selectors and chaining:

http://developer.yahoo.com/yui/3/