>>>>> "Lukas" == Lukas Renggli <renggli at gmail.com> writes:
>> In jsTree (for example) it is much easier for users to use drag&drop
>> properly, but:
>> - jsTree is based on jQuery
>> - if you want to use jsTree and Prototype based stuff on the same web
>> page you probably have to use jQuery.noConflict() and patch the complete
>> jsQuery library (?)
Lukas> jQuery patches itself when you call noConflict. It is just that this
Lukas> might break some external jQuery plugins that do not stick with the
Lukas> coding guidelines.
And in brief, a quick way to tell it'll break will be the lack of a literal
"jQuery" in the plugin, and the presence of lots of dollar signs.
But note that even in noConflict mode, this works fine:
jQuery(function ($) { ... });
The code inside the function will be run at the document.load event
(the right time to start running things), with $ inside the body
as the jQuery's $, not Prototype's $.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion