Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30860
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: How fetch data from form for javascript screening |
| References | <ti0hz.37337$Z95.7322@fx29.iad> <nm5c8v$cjn$1@solani.org> |
| Message-ID | <FAHhz.1851$7L2.198@fx19.iad> (permalink) |
| Date | 2016-07-13 23:56 -0800 |
Christoph M. Becker wrote:
> On 12.07.2016 at 08:41, Robert Baer wrote:
>
>> <script type="text/javascript">
>>
>> // do not know what to do to get those variables
>
> Read<http://pointedears.de/scripts/faq/cljs/#domRef>.
>
>> document.writeln("getElementById via value does not work and
>> crashes.<BR>");
>> // Qnam=document.getElementById("QN").value;
>
> Obviously, there is no element with id "QN". Therefore
> document.getElementById("QN") returns `undefined`. Accessing a property
> of `undefined` is supposed to error.
>
>> // following gives undefined
>> // Qmsg=document.getElementsByName("form-control").innerHTML ;
>> // document.writeln(Qmsg+"|<BR>");
>
> There is no element with name "form-control".
>
I think that has settled the mud in my pond (so to speak).
My interpretation: the HTML code _must_ say id="gert" to have an
element with id of "gert"; likewise the code must say name="foodle" to
have an element with name"foodle".
=*SPLAT*=
How utterly simple and direct!
Am i dummy or what!
Thanks!!!
PS: Also thanks for that article by pointedears, it is par excellence!
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-11 22:41 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-12 11:38 +0200
Re: How fetch data from form for javascript screening "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-12 11:50 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 13:50 -0800
Re: How fetch data from form for javascript screening "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-13 00:09 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 17:27 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-13 01:15 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 18:53 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-13 18:03 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-14 00:16 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-14 23:40 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 13:40 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-13 01:09 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 17:51 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-14 01:07 +0200
Re: How fetch data from form for javascript screening "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-07-13 14:30 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-13 23:56 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-15 11:32 +0200
csiph-web