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


Groups > comp.lang.javascript > #33975

Re: Issue with two submit button for one form

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Osmo Saarikumpu <osmo@weppipakki.com>
Newsgroups comp.lang.javascript
Subject Re: Issue with two submit button for one form
Date Tue, 12 Sep 2017 07:47:14 +0300
Organization A noiseless patient Spider
Lines 17
Message-ID <op7osv$356$1@dont-email.me> (permalink)
References <978f5753-ab82-4206-89cc-1d91e98a9fcc@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 12 Sep 2017 04:47:27 -0000 (UTC)
Injection-Info reader.eternal-september.org; posting-host="8fb909177a98cbc6057ec8849cce62ce"; logging-data="3238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RBtmxSp5wny8C4lBN+h/r"
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
In-Reply-To <978f5753-ab82-4206-89cc-1d91e98a9fcc@googlegroups.com>
Content-Language en-US
Cancel-Lock sha1:CJBSqR6ZBuW49wJ1bhL8JkvUENA=
Xref csiph.com comp.lang.javascript:33975

Show key headers only | View raw


On 12/09/2017 01:37, justaguy wrote:
> As the names suggest, "Save & Continue" is supposed to save the data and the form stays on while "Save & Exit" is supposed to send the form to be processed (and we leave this page).

> <input type="submit" id="save-and-continue" ...

What happens if you change the above to:

<input type="button" id="save-and-continue" ...

?

See:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/button

-- 
Best wishes, Osmo

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


Thread

Issue with two submit button for one form justaguy <lichunshen84@gmail.com> - 2017-09-11 15:37 -0700
  Re: Issue with two submit button for one form Osmo Saarikumpu <osmo@weppipakki.com> - 2017-09-12 07:47 +0300
  Re: Issue with two submit button for one form JJ <jj4public@vfemail.net> - 2017-09-12 18:23 +0700
    Re: Issue with two submit button for one form justaguy <lichunshen84@gmail.com> - 2017-09-14 15:30 -0700
    Re: Issue with two submit button for one form Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-09-19 10:55 +0200

csiph-web