Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.unit0.net!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1630347.0OQEqAhc4z@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 09 Jan 2013 05:14:29 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit Subject: Re: Request for opinions on my newbie approach Newsgroups: comp.lang.javascript References: <10136443.OnBuAidq6I@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 52 NNTP-Posting-Date: 09 Jan 2013 05:14:29 CET NNTP-Posting-Host: c96893ae.newsspool3.arcor-online.net X-Trace: DXC=^7]2Ea:E?F@A@P]\DMcF=Q^Z^V3H4Fo<]lROoRA8kFBIO6cR^^AYjN X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:18030 Leonardo Azpurua wrote: > > "Thomas 'PointedEars' Lahn" escribi� en el mensaje > news:10136443.OnBuAidq6I@PointedEars.de... >> Leonardo Azpurua wrote: >> >> These languages (on the client-side) so far use prototype-based >> inheritance >> only. There are no classes. "Object type" appears to be the term that >> fits >> best as it is used in the ECMAScript Specification. This is unacceptable. Either fix OE as suggested or use something considerably better (such as Thunderbird: ). You would do everyone a favor, yourself in double sense. >>> { >>> var e = f.elements[i]; >>> this[e.id] = e; >> >> Not a good idea. Keep in mind that >> >> 1. not all form controls (need to) have an ID; >> 2. your wrapper object has other properties at that level that could be >> overwritten if a form control has the same … ID as a property name of your wrapper object (I meant to say then). > Since that library is basically for my own use, and my "standard" requires > that every meaningful HTML element has an id, and that every id is unique > within the file, it doesn't sem to be a problem. Consider what would happen with
> Thanks! You're welcome. > -- See above. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.