Sorry for the delay, my PSU went bad so I couldn't get at my code.
I'm no Javascript guru (nor am I all that familiar with either MochiKit
or Dojo internals), but based on the info linked, here's a
quick-and-dirty to get things up and going with Dojo .4 and the current
MochiKit CVS:
In mochikit/MochiKit/__package__.js, replace everything with the
following:
dojo.kwCompoundRequire({
"common": [
"MochiKit.Base",
"MochiKit.Iter",
"MochiKit.DOM",
"MochiKit.Async",
"MochiKit.Style",
"MochiKit.Color",
"MochiKit.Visual",
"MochiKit.Signal",
"MochiKit.DateTime",
"MochiKit.Logging",
"MochiKit.LoggingPane",
"MochiKit.Format",
"MochiKit.DragAndDrop"
]
});
dojo.provide("MochiKit.*");
***
It seems that most of the errors occur if the above aren't listed in a
particular order. I also wasn't able to get New.js or Sortable.js to
properly load when included in that list, so they must be manually
included in the file. Here's my test file and my directory structure:
./test.htm
./js/dojo/dojo.js
./js/mochikit/MochiKit/MochiKit.js
***
<html>
<head>
<script type="text/javascript" src="./js/dojo/dojo.js"></script>
<script type="text/javascript">
dojo.registerModulePath("MochiKit", "../mochikit/MochiKit");
dojo.require("MochiKit.MochiKit");
dojo.require("dojo.lfx");
</script>
<script type="text/javascript"
src="./js/mochikit/MochiKit/New.js"></script>
<script type="text/javascript"
src="./js/mochikit/MochiKit/Sortable.js"></script>
</head>
<body>
<div>
<div id="test_mochi" style="display: none;"></div>
and
<div id="test_dojo" style="display: none;"><h1>Dojo</h1></div>
</div>
<script>
MochiKit.DOM.appendChildNodes('test_mochi',MochiKit.DOM.createDOM('h1','MochiKit'));
MochiKit.Visual.appear('test_mochi');
</script>
<script>
dojo.lfx.html.wipeIn('test_dojo').play();
</script>
</body>
</html>
***
I have yet to encounter any Dojo/Mochi conflicts using this setup.
Hopefully someone more learned than I can make it into a bit more
elegant of a solution.
-Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---