At 19:16 -0500 on 05/11/2008, John McKown wrote about Re: Mainframe
programming vs the Web:
I think that this sort of think would be possible using AJAX. But AJAX
requires that Javascript be enabled in the user's browser. And many don't
like that due to the possibility of decreased security. I know that I use
the Firefox extention to stop Javascript on most sites. I don't think that
MS's Internet Explorer has anything like that. I don't know about other
browsers such as Safari or Opera
While AJAX (or just JavaScript) will help, you can just have the
server refresh the page when submitted and flag the bad fields. The
Good fields can be set to display but not be able to be updated
(ReadOnly) or tabbed-to (Tabindex=0).
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.
----------------------------------------------------------------------
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