Login Register

Prototype Dojo compatibility

The project that I came to is already using Prototype and Scriptaculous in many pages.
I want to introduce Dojo to this project. I am worried if I may introduce hard to track bugs by having both framework. Will there be namespace collision, event overriding or javascript problems ?
Are there any document that provides guidance or problems that we need to be aware of ?
Thanks

Dojo is careful

Dojo is very careful about not polluting the global namespaces or overriding built-ins. You shouldn't have any problems mixing libraries but sometimes the initial loading order is important.

- Rob :)

Prototype DOES conflict with Dojo

We just recently encountered this problem and confirmed the conflict between Prototype and Dojo.

If you include Prototype in the same page as image.Gallery - it fails badly. The problem seems to be related to Prototype's extending base classes. Somehow Dojo A11y logic malfunctions on page load - causing a cascade of javascript errors.

Has anyone else encountered this? Any workarounds?

Tom Agnew

Which version of Prototype?

n/t