Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "Jukka K. Korpela" Newsgroups: comp.lang.javascript Subject: Re: determine which submit input is clicked, get syntax error Date: Sat, 14 Jan 2012 09:27:35 +0200 Organization: A noiseless patient Spider Lines: 23 Message-ID: References: <055f38d5-d99f-48ca-a14b-09867f95e9f4@iu7g2000pbc.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 14 Jan 2012 07:27:31 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ngroV0xYIIv0dzjhyZhv5A"; logging-data="31033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lQo9XyUSiU6TJNCD0S2eK" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <055f38d5-d99f-48ca-a14b-09867f95e9f4@iu7g2000pbc.googlegroups.com> X-Antivirus-Status: Clean X-Antivirus: avast! (VPS 120113-1, 13.01.2012), Outbound message Cancel-Lock: sha1:vGrnqwEoiDzLmLifSRLzmiDSII4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:10224 2012-01-14 3:32, css-discuss.org wrote: > I have a question about the submit inputs. How about posting a URL? It's rather awkward to try to debug code that has been munged by your Usenet posting software (lines broken etc.) and that does not constitute a full document. > I get a syntax error on > the asterisks. > Firebug says "illegal character " at the end of the else if line. How about fixing the error then? > }else if (btnClicked.value=='Search') { ​ ******stops here before You don't think that proper JavaScript code, do you? P.S. In your sender information on Usenet, it's not wise to use a fake name that coincides with the name of a reputable discussion list. -- Yucca, http://www.cs.tut.fi/~jkorpela/