I change the _package_.js in MochiKit 1.4 to the following and it
WORKS!!!

//dojo.hostenv.conditionalLoadModule({"common":
["MochiKit.MochiKit"]});
//dojo.hostenv.moduleLoaded("MochiKit.*");

dojo.kwCompoundRequire({
        common: [
        "MochiKit.Base",
        "MochiKit.Iter",
        "MochiKit.Logging",
        "MochiKit.DateTime",
        "MochiKit.Format",
        "MochiKit.Async",
        "MochiKit.Color"
        ], // a generic dependency
    browser: [
        "MochiKit.DOM",
        "MochiKit.LoggingPane",
        "MochiKit.Visual"
    ]}
    );

dojo.provide("MochiKit.*");


In the demo.jsp. the load script is

<script type="text/javascript"
src="<%=request.getContextPath()%>/html/assets/js/dojo/dojo.js"></script>

<script type="text/javascript">
                dojo.setModulePrefix("MochiKit", "../MochiKit");
                dojo.require("MochiKit.*");
</script>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to