Hi!
First of all, apologies for posting this topic again! Inspite of
reading all the tips in the archives, I just cannot get the latest SVN
versions of Dojo and MochiKit to work together.
1) Importing MochiKit using Dojo's require():
<script type="text/javascript" src="js/dojo/dojo.js"></script>
<script language="JavaScript" type="text/javascript">
dojo.hostenv.setModulePrefix("MochiKit",
"../mochikit/MochiKit.js");
dojo.require("MochiKit.*");
dojo.require("dojo.widget.LayoutContainer");
//etc
</script>
I get: FATAL: Could not load 'MochiKit'; last tried '__package__.js'
2) Importing MochiKit after Dojo without using require():
<script language="text/javascript" src="js/dojo/dojo.js"></script>
<script language="text/javascript">
dojo.require('dojo.widget.*');
//etc
</script>
<script type="text/javascript">MochiKit = {__export__: false};</script>
<script type="text/javascript" src="js/mochikit/MochiKit.js"></script>
I get: MochiKit.Base has no properties: MochiKit.js, Line 57
3) Importing MochiKit before Dojo without using require():
<script type="text/javascript">MochiKit = {__export__: false};</script>
<script type="text/javascript" src="js/mochikit/MochiKit.js"></script>
<script language="text/javascript">
dojo.require('dojo.widget.*');
//etc
</script>
I get: FATAL: Could not load 'dojo.widget'; last tried '__package__.js'
The only thing that does work is importing the Packed version of
MochiKit through dojo.require() after switching export=false. However,
I need MochiKit's DnD in my application, which is unfortunately not
present in the packed version :(
So, How I do I get Dojo and MochiKit to play together? I would have
used MochiKit alone, but I just need to use Dojo's Layout and Tab
container widgets!
I know I might be doing be doing something stupid, but any help would
be greatly appreciated!
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---