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


Groups > comp.lang.javascript > #10270

Re: determine which submit input is clicked, get syntax error

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Newsgroups comp.lang.javascript
Subject Re: determine which submit input is clicked, get syntax error
Date Sun, 15 Jan 2012 22:35:27 +0200
Organization A noiseless patient Spider
Lines 14
Message-ID <jevdaf$qvh$1@dont-email.me> (permalink)
References <055f38d5-d99f-48ca-a14b-09867f95e9f4@iu7g2000pbc.googlegroups.com> <jerap3$u9p$1@dont-email.me> <5f0b2f5c-356b-4669-8bc1-637e15fcb5f6@g4g2000pbi.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sun, 15 Jan 2012 20:35:27 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="ngroV0xYIIv0dzjhyZhv5A"; logging-data="27633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Sec3jCj0Dl4/rb9twOpfi"
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
In-Reply-To <5f0b2f5c-356b-4669-8bc1-637e15fcb5f6@g4g2000pbi.googlegroups.com>
X-Antivirus-Status Clean
X-Antivirus avast! (VPS 120115-1, 15.01.2012), Outbound message
Cancel-Lock sha1:vF+IVNfrpSmRgh8r0Uxa0pFOZWg=
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:10270

Show key headers only | View raw


2012-01-15 21:27, JRough wrote:

> I put an example on janisrough.dyndns.biz/tracking.html.

Sorry, it does make much sense. What is it supposed to submit to, and 
why is the JavaScript code as text content there?

It's not even obvious why you have two submit buttons in a <form> 
element that is not closed anywhere. Why not two separate forms, each 
with fields and submit buttons of their own? Then you would not need to 
worry about detecting client-side which button was clicked on.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

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


Thread

determine which submit input is clicked, get syntax error "css-discuss.org" <janis.rough@gmail.com> - 2012-01-13 17:32 -0800
  Re: determine which submit input is clicked, get syntax error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-01-14 09:27 +0200
    Re: determine which submit input is clicked, get syntax error JRough <janis.rough@gmail.com> - 2012-01-15 11:27 -0800
      Re: determine which submit input is clicked, get syntax error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-01-15 22:35 +0200
        Re: determine which submit input is clicked, get syntax error JRough <janis.rough@gmail.com> - 2012-01-15 14:13 -0800
        Re: determine which submit input is clicked, get syntax error JRough <janis.rough@gmail.com> - 2012-01-15 14:17 -0800
        Re: determine which submit input is clicked, get syntax error JRough <janis.rough@gmail.com> - 2012-01-15 15:01 -0800

csiph-web