Hi,
I came across a bug on kss.core which prevents any JavaScript to work on IE7
and IE8, it simply doesn't execute more JavaScript code.
The error is on line "results.push(Element.extend(element));" in files:
- kss.core-1.6.1-py2.6.egg/kss/core/plugins/effects/browser/plugin.js
- kss.core-1.6.1-py2.6.egg/kss/core/plugins/effects/3rd_party/prototype.js
Just above the code there's a quite scary comment about the code involved:
// This is terrible. We needed to copy this part
// from prototype. Notice that I put this.$ =
// in the beginning. Without that the function
// declarations in IE won't overwrite each others,
// and one of them (first or last occurence) comes
// in. Now, we have a contradicting $ declaration
// in Mochikit, causing the problem.
this.$ = function $() {
var results = [], element;
for (var i = 0; i < arguments.length; i++) {
element = arguments[i];
if (typeof element == 'string')
element = document.getElementById(element);
results.push(Element.extend(element));
}
return results.length < 2 ? results[0] : results;
};
As usual Firefox, Chrome, Safari et al work fine, but for anyone trying to
enter our website with IE7 or IE8 it will not work when (s)he is logged in.
I found something similar on collective.amberjack[1] but it doesn't tell how
they resolved/worked around the issue.
I'm not a JS expert myself nor I know the whereabouts of kss.core, anyone
can shed some light on it?
Cheers,
[1] https://bugs.launchpad.net/collective.amberjack/+bug/666274
--
*Gil Forcada**
*C/Llacuna, 166 2n.2a (Edifici Llacuna)
telf: 93.188.88.12 - 619.65.34.92
fax: 93.320.93.97
(08018) BARCELONA
[email protected]
www.usecm.com
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers