Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #35042
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Serialise form with input of type image |
| Date | Thu, 17 May 2018 13:24:30 +0200 |
| Organization | solani.org |
| Lines | 18 |
| Message-ID | <pdjopf$3t3$1@solani.org> (permalink) |
| References | <LfqdneZ61dqoiGDHnZ2dnUU7-IvNnZ2d@westnet.com.au> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | solani.org 1526556271 4003 eJwFwYEBwDAEBMCVKJ6MEy/2H6F3YVAwHQGPjWW414fVnlOZlhIMcnRs15vdsQXWEt3zJI9+qQKaz9yqKwuL+6SLfIh29Ik3cjfV3vsBufQffQ== (17 May 2018 11:24:31 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Thu, 17 May 2018 11:24:31 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
| Cancel-Lock | sha1:EMtAGDl7YRO/UE3A2BS3hTJCxaQ= |
| Content-Language | de-DE |
| X-NNTP-Posting-Host | eJwNytEBRDEEBMCWLFmiHI/ov4S7+R6awzuO0w+Xq/Yx4s1xy/UytISQAp15nBs+9m6UohFtVS51jxL58OaWHJfWZRoj8c/IpoG1qf7BflXVHMs= |
| X-User-ID | eJwNyMERwDAIA7CV6gDGjEPKsf8IrZ4KI/imM+ixsS1t5j2bkKqwNm7UAPi/7Q6fnkuXHWfFBxAFEFw= |
| In-Reply-To | <LfqdneZ61dqoiGDHnZ2dnUU7-IvNnZ2d@westnet.com.au> |
| Xref | csiph.com comp.lang.javascript:35042 |
Show key headers only | View raw
On 17.05.2018 at 07:37, Andrew Poulos wrote:
> I have a form and some of the form elements are inputs of type image.
> For example
>
> <input type="image" src="...blah" style="..blah">
>
> It picks up every input (text, button, checkbox, number, radio...)
> except those of type image. Why does it seem to ignore inputs of type
> image, and how do I get it to also include them?
See
<https://www.w3.org/TR/html52/sec-forms.html#dom-htmlformelement-elements>.
If you really need <input type="image"> elements, you could replace
`frm.elements` with `frm.getElementsByTagName("input")`, or such.
--
Christoph M. Becker
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Serialise form with input of type image Andrew Poulos <ap_prog@hotmail.com> - 2018-05-17 15:37 +1000
Re: Serialise form with input of type image Andrew Poulos <ap_prog@hotmail.com> - 2018-05-17 18:56 +1000
Re: Serialise form with input of type image "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-05-17 13:24 +0200
Re: Serialise form with input of type image Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-05-22 15:55 +0200
Re: Serialise form with input of type image Andrew Poulos <ap_prog@hotmail.com> - 2018-05-23 10:17 +1000
Re: Serialise form with input of type image JR <jr@yahoo.com> - 2018-05-23 16:42 -0300
Re: Serialise form with input of type image Andrew Poulos <ap_prog@hotmail.com> - 2018-05-24 11:21 +1000
Re: Serialise form with input of type image Joao Rodrigues <jr@yahoo.com> - 2018-05-24 00:41 -0300
Re: Serialise form with input of type image Andrew Poulos <ap_prog@hotmail.com> - 2018-05-24 18:17 +1000
csiph-web