Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Problems setting className
- From: trojani2000 at hotmail.com (Troy III Ajnej)
- Subject: [Javascript] Problems setting className
- Date: Mon Nov 14 07:31:14 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@xxxxxxxxx>
>Reply-To: "\[JavaScript List\]" <javascript@xxxxxxxxxx>
>To: "[JavaScript List]" <javascript@xxxxxxxxxx>
>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@xxxxxxxxxx
>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/
- Follow-Ups:
- [Javascript] OT: Abuse (was: Problems setting className)
- From: Matt Barton
- [Javascript] OT: Abuse (was: Problems setting className)
- References:
- [Javascript] Problems setting className
- From: diego nunes
- [Javascript] Problems setting className
- Prev by Date: [Javascript] Problems setting className
- Next by Date: [Javascript] OT: Abuse (was: Problems setting className)
- Previous by thread: [Javascript] Problems setting className
- Next by thread: [Javascript] OT: Abuse (was: Problems setting className)
- Index(es):