This content has been marked as final.
Show 7 replies
-
1. Re: rich:tree JS Error on IE6 - Prototype's hasClassName met
electricmonk Mar 28, 2008 9:03 AM (in response to electricmonk)bump
anyone? -
2. Re: rich:tree JS Error on IE6 - Prototype's hasClassName met
sergeysmirnov Mar 28, 2008 10:55 AM (in response to electricmonk)try
<script> alert(Prototype.Version);</script>
What it says? -
3. Re: rich:tree JS Error on IE6 - Prototype's hasClassName met
electricmonk Mar 30, 2008 2:18 AM (in response to electricmonk)Prototype version is 1.6
-
4. Re: rich:tree JS Error on IE6 - Prototype's hasClassName met
electricmonk Mar 31, 2008 8:03 AM (in response to electricmonk)bump?
-
5. Re: rich:tree JS Error on IE6 - Prototype's hasClassName met
electricmonk Apr 2, 2008 8:56 AM (in response to electricmonk)anyone?
-
6. Re: rich:tree JS Error on IE6 - Prototype's hasClassName met
ayanul Apr 3, 2008 1:58 PM (in response to electricmonk)HI electricmonk
Can send any example war with libs? -
7. Re: rich:tree JS Error on IE6 - Prototype's hasClassName met
electricmonk Apr 7, 2008 3:45 AM (in response to electricmonk)Well, it's quite difficult to do so, since the project i'm working on contains some confidential stuff, so I ended up writing a quick hack which seems to work.
Basically I simply replaced Element.addClassName with my own implementation:// start of fix for a strange Prototype bug where IE6 can't call element.hasClassName function hasClassName(element, className) { return (element.className && element.className.indexOf(className) >= 0); } Element.addClassName = function(element, className) { if (!(element = $(element))) return; if (!hasClassName(element, className)) element.className += (element.className ? ' ' : '') + className; return element; }; // end of fix for a strange Prototype bug where IE6 can't call element.hasClassName