Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Mike Duffy Newsgroups: comp.lang.javascript Subject: Re: Submitting a Form that has Control Events Date: Thu, 23 Feb 2012 12:52:44 +0000 (UTC) Organization: Your Company Lines: 27 Message-ID: References: <9ghbk7hh8t3jbka7kmepejfnqng4vbjqgo@4ax.com> NNTP-Posting-Host: 8GXtu24jXTHJm9OLlhLTEQ.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: Xnews/5.04.25 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:12089 Gene Wirchenko wrote in news:9ghbk7hh8t3jbka7kmepejfnqng4vbjqgo@4ax.com: > > I click Submit and... You should either give us the url of the page or its source if it is not on the Internet. Better yet, a skeleton of just a few lines that does not work as you think it should. > Sometimes, especially if the current control is one that has a > validation rule, the function I have written for submitting does not > get run. When you say "current", do you mean the form element which currently has focus? Does each form element have an "onBlur" validation function applied to it, or just onKeypress/onClick? Did you remember to return "true" in all of those functions when the form values are okay? I see that you are sumitting with the button, but some people will press to submit a form regardless of the instructions on the screen. So you should have "onKeypress" handlers for your checkboxes and "onClick" handlers for your text fields, etc. -- http://pages.videotron.ca/duffym/index.htm