On Wed, 28 Nov 2007 13:59:12 -0800 (PST), "Blaine & Alexis"
<> wrote, quoted or indirectly quoted someone who
said :
>
>--- Code in FireFox Browser --
> <form name="shift4" method="POST">
> <applet id="shift4Processing"
>code="com.webrezpro.browser.shift4Test" archive="./dist/
>WebRezProBrowserJava.jar" width="300" height="300">
> </applet>
> <input type="button" value="Test"
>onClick="alert( this.form.shift4Processing.validateCreditCard('htt p://
>java.webrezpro.com/test/t.txt', 10000,'test=test') )" />
> </form>
I would suggest getting rid of the JavaScript and do all the logic in
your Applet. See
http://mindprod.com/applet/creditcard.html
for source.
Alternatively send the number off to the sever with your form to be
validated. You quadruple your headaches trying to combine paradigms.
Your Applet can also send the pre-validated credit card number to your
server. You can do that with SSL or with code such as in the
Transporter if you don't have SSL. See
http://mindprod.com/products1.html#TRANSPORTER
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com