At 12:15 -0400 on 05/13/2008, Tony Harminc wrote about Re: Mainframe programming vs the Web:

2008/5/12 Robert A. Rosenberg <[EMAIL PROTECTED]>:

  If you accept only cards that use 4 4-character fields, you can also have 4
 windows (each 4 characters wide) and auto-advance the cursor after the 4th
 character (I have seen this done but it may need JavaScript). AJAX (or
 JavaScript) will allow you to generate the fields after the Card Type Radio
 Button is selected so other formats (like AMEX [4-6-5]) can be handled. Use
 of AJAX or JavaScript also allows Client Side checking of the Card Type (the
 first characters key to the Card Type) as well as the Check Digit Check.

Well... Some very cute things can indeed be done this way, but many of
them can go wrong because the implementor didn't think through the
possibilities, or the possibilities changed after the app was written,
or incorrect assumptions were made. Over editing is often worse than
under, and there is a tradeoff between ensuring data is at least safe
(e.g. stripping out SQL injection and the like) vs disallowing valid
but unanticipated data.

My comment was aimed at the gripe that with CICS and 3270 Screens you could force the formatting to separate the CC Card Number into 4 Character Fields and pointing out that you can also do the same with HTML (and showing how). As to the dynamic updating of the CC Fields, I did that years ago when I was taking a HTML Course at my Community College (I was taking it to round out my skills since I was self taught and wanted to formal training).

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to