[Javascript] Problems setting className

Troy III Ajnej trojani2000 at hotmail.com
Mon Nov 14 07:31:10 CST 2005


That's because you are dumm and extreemly uneducated person.
Use the forcing/theaching 'Eagle how to walk' W3C DOM standards,
instead of 'Learn from it how to fly' and maybe you save your dear firefox
from completely burning up from it's tail.

I still can't believe how few simple objections on FF got you up to 
personaly
instult me.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                         Troy III
                              progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


>From: diego nunes <dnunes at gmail.com>
>Reply-To: "\[JavaScript List\]" <javascript at LaTech.edu>
>To: "[JavaScript List]" <javascript at latech.edu>
>Subject: [Javascript] Problems setting className
>Date: Fri, 11 Nov 2005 14:46:39 -0200
>
>     I built, some time ago, a "function kit" to help when I'm
>DOMScripting. One of the functions wasn't so efficient, 'cause it had
>four obrigatory parameters. I've made some changes, creating the new
>"cE 2.0" (which stands for "Create Element"). This function creates an
>element, and set the id, className and value (with DOM, obviously).
>The function is...
>
>function cE(tN, tID, tCN, tC) {
>   // createElement 2.0 -- <str tagName>, [str id, str class] [, (str |
>obj) content]
>   if (!document.createElement) return false; var nE, tER;
>nE=document.createElement(tN);
>   if (arguments.length > 1) { if (arguments.length == 2) { tC=tID;
>tID=tCN=''; } if (valorValido(tID)) { nE.id=tID; }
>     if (valorValido(tCN)) { nE.className=tCN; } if (tC) {
>nE.appendChild( (typeof(tC)=='string')?cTN(tC):tC ); }
>   } return nE;
>}
>
>     It's working quite fine in all browsers, but Firefox. It simply
>refuses to apply the "className" (the third parameter). Even in
>Internet Explorer it works, and in Opera. Does anybody knows why the
>hell it's behaving this way?!
>
>   Amplexos.
>
>--
>diego nunes
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




More information about the Javascript mailing list