Results 1 to 3 of 3

Thread: Password form with peek

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Aug 2019
    Location
    Aue
    Posts
    9

    Default Re: Password form with peek

    In some browsers the "eye" comes automatically as soon as you enter a password. For Chrome & FireFox I have the following solution:

    Code:
        Object oPassword is a cWebForm
            Set psLabel to "Password:"
            Set pbPassword to True
            Set peLabelPosition to lpTop
            Set psPlaceHolder to "Password"
            Set pbPromptButton to True
            Set psCSSClass to "auge"
    
            Procedure OnPrompt
                Forward Send OnPrompt
                Boolean bOn    
                
                WebGet pbPassword of oPassword to bOn
                
                If (bOn) WebSet pbPassword of oPassword to False
                Else WebSet pbPassword of oPassword to True
            End_Procedure
        End_Object
    Application.css:
    Code:
    .auge span.WebFrm_Prompt::before {
        content: url("auge.png");
    }
    Picture:
    Name:  auge.png
Views: 59
Size:  857 Bytes
    Last edited by Hook; 10-Jun-2020 at 01:38 AM.
    Glück Auf!
    Sebastian

    it is better to stagger the right way limping than to step firmly down the wrong path

Posting Permissions

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