Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30887

Re: Interesting form functionality difference

Path csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Interesting form functionality difference
Date Sun, 17 Jul 2016 20:31:22 +0200
Organization PointedEars Software (PES)
Lines 32
Message-ID <2355525.mvXUDI8C0e@PointedEars.de> (permalink)
References <5aIhz.240$9n.232@fx38.iad> <87twfsr18i.fsf@bsb.me.uk> <2767618.5fSG56mABF@PointedEars.de> <NdDiz.2077$5_7.1800@fx20.iad>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1468780282 21899 eJwFwYEBwCAIA7CXJkId50Cx/59gEhsLPI6Ah0I+RdoHdf1Ni5O8K6BpiJXAOqnLatX4Hns9uBKC (17 Jul 2016 18:31:22 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 17 Jul 2016 18:31:22 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYEBwCAIA7CXQNqi5ziE/09YwpCrEqLA4Zw3wxxcRG/Y+C2z1KcQF2R5u3yh+BxNeTxvZqrOou0dP0bzFHY=
Cancel-Lock sha1:fwkmmsXZRzgkd6WudJ99Nw3GX2A=
X-NNTP-Posting-Host eJwFwQERADEIAzBLcNCOl/MM6l/CEgSd9yTBhKCv5F69vDKbzsESsQb0aKt9/T+nwiErKh8mEBE7
Xref csiph.com comp.lang.javascript:30887

Show key headers only | View raw


Robert Baer wrote:

>    I made the suggested change and the form data gets posted.

Since you are not quoting what you are referring to, I do not know what you 
mean by “suggested change”.  Please read the FAQ on quoting.

>    However, the form does not get cleared (ever).
>    If online, the form in index-4.html does get cleared after a short
> wait (which i assume is the transit time).

The form is cleared if it is submitted classically, the server does not 
respond with status 204 “No Content”, and it does not respond with a filled-
in form, in a time span so short that you cannot see the difference, either.

It is also cleared if the script says it is to be cleared after its data is 
submitted non-classically, with XMLHttpRequest or (as Michael Haufe pointed 
out to me on Twitter), with the WHATWG Fetch API (currently experimental) 
[1], and there is no client-side script error before.

Use debugging (again, see the FAQ) to find out what happens.
“Does not work” is not a problem description.

BTW, the English pronoun, “I”, is *always* written with a capital letter.

_________
[1] <https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API>
-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-14 00:36 -0800
  Re: Interesting form functionality difference Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-07-14 10:57 +0100
    Re: Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-14 17:40 -0800
      Re: Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-14 18:03 -0800
    Re: Interesting form functionality difference Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-15 08:27 +0200
      Re: Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-16 19:47 -0800
        Re: Interesting form functionality difference Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-17 20:31 +0200
          Re: Interesting form functionality difference Robert Baer <robertbaer@localnet.com> - 2016-07-19 20:27 -0800
            Re: Interesting form functionality difference Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-24 18:40 +0200

csiph-web