Ah, a challenge.
I'll paste the code below. I simplified the use case I ran into it
with, so this doesn't make a lot of sense semantically, but it does
illustrate the error. If I'm using the MK functions wrong, I apologize
in advance :)
You'll have to set up the path to the MochiKit.js file as appropriate
on your system.
The error you get is:
ERROR: [object DOMException] NO_MODIFICATION_ALLOWED_ERR 7
As I mentioned, we've tested this on most/all other browsers, I can
post over at the Opera forums, but I figured I'd ask here first.
--- begin code ---
<html>
<head>
<title>Opera bindMethods issue</title>
<script src="MochiKit-1.3.1/lib/MochiKit/MochiKit.js"
type="text/javascript"></script>
</head>
<body>
<script>
var makeHideable = function (element, group) {
element.hide = function () {
addElementClass(this, "invisible");
signal(this, "onhide");
};
element.show = function () {
log("show",this.id);
removeElementClass(this, "invisible");
signal(this, "onshow");
};
// this throws an error on Opera 8.54
try {
bindMethods(element);
} catch (e) {
logError(repr(e), e.message, e.code);
}
log("Activated hideable done.");
};
</script>
A page that throws a Javascript error on Opera 8.54
<div id="testDiv">A test div.</div>
<script>
makeHideable($("testDiv"));
$("testDiv").hide();
$("testDiv").show();
</script>
</body>
</html>
--- end code ---
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---