IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes display credit card number..... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "display credit card number....." Watch "display credit card number....." New topic
Author

display credit card number.....

jyothsna kumari
Ranch Hand

Joined: Jul 21, 2003
Posts: 108
hi all,
My client has a strange requirement.he want's the credit card number to be displayed in such a way that while entering the number,he wants "*" to shown and last 4 digits as it is.
something like this ************4567
For this i have used two seperate input fields for the number.But he wants only one input field and above property.I am not getting any ideas as how to do that.
Please javaranchers help me.
Jyothsna
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
How are the people supposed to know that they are typing the real numbers?? I will play with it and I will see what I can come up with.
Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Best thing I could come up is this, but I still have no clue why anyone would want this! I pay most of my bills online and I hae never seen this! LO!L
jyothsna kumari
Ranch Hand

Joined: Jul 21, 2003
Posts: 108
hi Eric,
Thanks for your reply.I think i need to talk to my client regarding this.
Jyothsna
 
 
subject: display credit card number.....
 
Threads others viewed
Treasure hunt
EntityExistsException how to know which key i duplicate?
PayPal and Struts
Cade's Class Example use of Association
WA #1.....word association
IntelliJ Java IDE