Hello,
I am in apex 4.2 Theme 25 Responsive and trying to process a card swipe input into a textfield for processing.
Want to swipe card and automatically submit and process card swipe and insert into a table without user pressing a button. A report reading from the table inserted into displays the card swipe of id badge to users to see card swipe was successful. The card swipe of an id badge has 3 tracks with some special characters that I want to strip out after the card is swiped and want only alpha and numeric characters from the first track of the card.
For the textfield Html Form Element Attributes to call java script function to return alpha and numeric characters, I use this; onchange="replaceChars(this) ;doSubmit();"
my javascript function in the page html header area is
{ function replaceChars(pThis) {
var str= pThis.value;
alert("I am here ");
str = pThis.value.replace(/[^a-zA-Z0-9]/g, ”);
pThis.value = str;
}
}
It does not appear that the call to the javascript function is executed and even put in an alert msg that does not get displayed. I used this same technique in 3.2 with success, but not understanding what I am missing in apex 4.2.
Can anyone help?
Thank you for any help you can provide.
Mark