Hi, I just loaded this thing up for the first time and my JS console
gives a warning that says
Warning: assignment to undeclared variable MochiKit
Source file: http://localhost/spud/js/MochiKit/MochiKit.js
Line: 12

Anyway, I hacked in the "var' keyword and it is OK now. I just find it
strange that no one has seen this before, it is such a simple
solution.

ANYWAYS.... ;)
document.write not work when Content-Type: text/xml (XHTML in this
case)
So that pretty much screws MochiKit for XHTML. I assume this issue has
aleady been discussed or something? Should I assume that no one found
any solutions?

I replaced the document.write code with
                                if(document.write) {
                        document.write('<script src="' + uri +
                            '" type="text/javascript"></script>');
                                }
                                else if(document.documentElement) {
                        var s = document.createElement('script');
                        s.setAttribute("id", "MochiKit_" + base +
modules[i]);
                        s.setAttribute("src", uri);
                        s.setAttribute("type", "application/x-javascript");
                        baseElem.parentNode.appendChild(s);
                                }

but FF doesn't seem to know about the code that it is loading :(

If I select-ALL and then use "view selection source" from the context
menu, I can see that it has indeed inserted the script tags, but I
still get

Warning: reference to undefined property MochiKit.DOM
Source file: http://localhost/spud/js/NewUpgrade.js
Line: 12

Error: MochiKit.DOM has no properties
Source file: http://localhost/spud/js/NewUpgrade.js
Line: 12


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

Reply via email to