[Javascript] Credit card page, processing before it's ready

Mike Dougherty mdougherty at pbp.com
Tue Aug 31 13:51:09 CDT 2004


<input type="Submit" value="Submit Order" OnClick="return validationFunction()">

have validationFunction() return false if you don't want the form to submit
(update the returns you're using to "return false")

On Tue, 31 Aug 2004 15:33:06 +0000
  coldfusion.developer at att.net wrote:
>I'm using ... <input type="Submit" value="Submit Order" OnClick="CheckCardNumber(this.form)">
>So I would want it to look like ... ???
><input type="Submit" value="Submit Order" OnClick="if (!validationFunction()){return false;}">
>
>Thank you!  Thank you!
>
>-------------- Original message from "Shawn Milo" : -------------- 
>
>> Oops, mistake. 
>> 
>> if (!validationFunction()){return false;} 
>> 
>> It won't work the way I typed it in my first e-mail. 
>> 
>> Shawn 
>> 
>> > In the 
>or the submit button, add something like: 
>> > 
>> > if (!validationFunction){return false;} 
>> > 
>> > Shawn 
>> > _______________________________________________ 
>> > Javascript mailing list 
>> > Javascript at LaTech.edu 
>> > https://lists.LaTech.edu/mailman/listinfo/javascript 
>> > 
>> > 
>> _______________________________________________ 
>> Javascript mailing list 
>> Javascript at LaTech.edu 
>> https://lists.LaTech.edu/mailman/listinfo/javascript 
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list