When I was using the old caja mode (valijaMode == false), onclick
worked perfectly. Now that I switched to valija, if I try to do:
document.getElementById('foo').onclick = function() {};
I get an error:
"Expected function not object"
I tried some variations, e.g.:
function foo() {}
document.getElementById('foo').onclick = foo;
or
document.getElementById('foo').addEventListener('click', function()
{}, true);
And it gives me the same error. I filed an issue for it here:
http://code.google.com/p/google-caja/issues/detail?id=757
This is a showstopper for me currently, since events are critical for
interactivity. Am I doing something wrong or is this a bug?
Thanks!
Al.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
http://groups.google.com/group/google-caja-discuss
To unsubscribe, email [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---