Perhaps I'm not being clear. Is the following, in fact, the correct
way to create a link that calls a function (fiddlyBits) on otherObject?
<a id="div4">edit</a>
<script>
var divInit = function () {
connect($("div4"), "onclick", otherObject, "fiddlyBits");
};
addLoadEvent(divInit);
</script>
We've got about 1000 links on a page that all need to call "fiddlyBits"
onclick (and various sundry variations.) This works, but looks
excessive to me? All those addLoadEvents?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---