Forum Discussion
frankl
14 years agoOccasional Contributor
Hi Robert,
I am not familiar with the techniques you're describing. Let me give you a little more detail and perhaps you can point me in the right direction. The fields that I'm calling Keys() on are things like date and SSN fields that start out blank and then upon gaining focus change to "__/__/____" (for the example of date). Each numeric keystroke replaces a "_"; non-numerics are ignored and the "/" are skipped over. So typing "01232011" displays "01/23/2011" (ASP.NET AJAX Calendar Control). Looking at the Object Spy, it appears this is accomplished by defining onchange() and onkeypress() event handlers. Are you suggesting calling onkeypress() for each digit and then calling onchange() at that end? Is there an example of using this technique in TC you could point me at?
Thank you!
Frank
I am not familiar with the techniques you're describing. Let me give you a little more detail and perhaps you can point me in the right direction. The fields that I'm calling Keys() on are things like date and SSN fields that start out blank and then upon gaining focus change to "__/__/____" (for the example of date). Each numeric keystroke replaces a "_"; non-numerics are ignored and the "/" are skipped over. So typing "01232011" displays "01/23/2011" (ASP.NET AJAX Calendar Control). Looking at the Object Spy, it appears this is accomplished by defining onchange() and onkeypress() event handlers. Are you suggesting calling onkeypress() for each digit and then calling onchange() at that end? Is there an example of using this technique in TC you could point me at?
Thank you!
Frank