Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18030
| Message-ID | <1630347.0OQEqAhc4z@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2013-01-09 05:14 +0100 |
| Subject | Re: Request for opinions on my newbie approach |
| Newsgroups | comp.lang.javascript |
| References | <kcilrc$vt8$1@dont-email.me> <10136443.OnBuAidq6I@PointedEars.de> <kcipvf$ifh$1@dont-email.me> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Leonardo Azpurua wrote:
>
> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> 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: <http://getthunderbird.com/>).
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
<form … name="foo">
<label for="name">Name:</label> <input id="name" name="name">
</form>
> Thanks!
You're welcome.
> --
See above.
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Request for opinions on my newbie approach "Leonardo Azpurua" <leonardo@exmvps.org> - 2013-01-08 22:24 -0430
Re: Request for opinions on my newbie approach Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-09 04:31 +0100
Re: Request for opinions on my newbie approach "Leonardo Azpurua" <leonardo@exmvps.org> - 2013-01-08 23:34 -0430
Re: Request for opinions on my newbie approach Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-09 05:14 +0100
Re: Request for opinions on my newbie approach Jim T. <x@y.z> - 2013-01-09 14:32 -0500
Re: Request for opinions on my newbie approach Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2013-01-09 20:41 +0100
Re: Request for opinions on my newbie approach Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-09 21:03 +0100
Re: Request for opinions on my newbie approach Jim T. <x@y.z> - 2013-01-09 15:11 -0500
Re: Request for opinions on my newbie approach Luc Yen <luc@goal.tw> - 2013-01-09 14:38 -0800
Re: Request for opinions on my newbie approach "Leonardo Azpurua" <leonardo@exmvps.org> - 2013-01-09 18:10 -0430
Re: Request for opinions on my newbie approach Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-10 01:36 +0100
csiph-web