[Javascript] OT: Abuse (was: Problems setting className)
Matt Barton
javascript at mattbarton.org
Mon Nov 14 07:45:33 CST 2005
Please make an attempt to keep this mailing list professional and
helpful. We've all, I'm sure, seen the dross that a good mailing list
can become if only a small minority of users start using terms like "you
are dumb and extremely uneducated".
This is an excellent, excellent mailing list. Keep it as such.
Matt
Troy III Ajnej wrote:
> 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/
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
>
More information about the Javascript
mailing list