Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn 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> References: <5aIhz.240$9n.232@fx38.iad> <87twfsr18i.fsf@bsb.me.uk> <2767618.5fSG56mABF@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn 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 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] -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.