On Sep 3, 7:42 am, Bob Ippolito [EMAIL PROTECTED] wrote:
MochiKit doesn't actually use $, it's just an alias for getElement
that we export for the user's convenience. You can load whatever
library you want after MochiKit and let it take over use of $, nothing
will break.
-bob
On 9/2/07, jack.tang [EMAIL PROTECTED] wrote:
Hi, all
I blogged one case in my blog (http://jack.lifegoo.com/?p=163) which
described the complaint of $ in jQuery, Prototype and Mochikit,
could you please take it consider and reduce the conflicts?
Thanks.
/Jack
We are using MochiKit and JQuery.
JQuery tells to use the 'jQuery.noConflict()' but we continued to have
compatibility problems.
After investigation a little bit, I found a solution:
we first load MochiKit, then JQuery, and we add than little code just
before the /head
script type=text/javascript
jQuery._$ = MochiKit.DOM.getElement;
var $j = jQuery.noConflict();
/script
$ refers to MochiKit's getElement
$j refers to JQuery's $
PS: I hope the html tags will render correctly (there is no preview)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---