Results 1 to 3 of 3

Thread: cWebPasswordForm - with Caps Lock warning

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    3,320

    Default cWebPasswordForm - with Caps Lock warning

    Hi All

    Follow a simple cWebForm sub-class that provides a CAPSLOCK warning on password forms.

    Click image for larger version. 

Name:	WebPasswordForm_capslock_warning_ok.PNG 
Views:	83 
Size:	10.6 KB 
ID:	14044

    I am not an expert on WAF and neither on javascript.. So, if anyone more skilled than I finds a better way of doing/implement it.. would be glad to hear.

    So, far it has worked fine.

    In any case you find an issue.. just let me know..

    It sets pbPassword to true by default.
    Also, has a new web-property psCapsWarningText to let you customize the warning message to be shown.

    If this property is set to blank, the warning is disabled.

    As it uses showControlError method, it needs an error number to be passed to the internal error controller. So, just to avoid any possible error number conflict in your system, there is also another property where you can change that to a non-used error number.

    cWebPasswordForm.zip

    Extract the files in your lib or workspace.. and edit your index.html to add it

    Code:
        <!-- DataFlex Custom Controls (do not remove this line, used for automatic insertion) -->
        <script src="SubClasses/WebPasswordForm.js"></script>


    Regards
    Samuel Pizarro

  2. #2
    Join Date
    Feb 2009
    Posts
    2,013

    Default Re: cWebPasswordForm - with Caps Lock warning

    Thanks for the work and sharing Samuel.
    This is something that maybe should be part of the sacred text or in the help or something as it's a pretty common almost universal thing I see

  3. #3
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    3,320

    Default Re: cWebPasswordForm - with Caps Lock warning

    Thanks richard..

    I feel the same. Hope DAW could incorporate something like this in the future, or something better. maybe directly in the cwebform instead of having a new class just for it, as the base class already have password support stuff.
    then we won't need this sub-class anymore.

    Regards
    Samuel Pizarro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •