Sep 11, 2013, 12:18 PM
[CLOSED] PasswordMask information
Hi,
Can't find not much info about the PasswordMask plugin.
I would send a dutch warning message instead of "Password must contain digits. Password is too short"
Is this possible ?
This is my current code:
Can't find not much info about the PasswordMask plugin.
I would send a dutch warning message instead of "Password must contain digits. Password is too short"
Is this possible ?
This is my current code:
<%@ Page Language="C#" %><%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Meldinggroep</title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="rsmMeldingGroep" runat="server" />
<ext:Viewport ID="Viewport1" runat="server" Layout="Fit">
<Items>
<ext:FormPanel ID="fpPassword" runat="server" Title="" Frame="true" BodyPadding="5"
AutoScroll="true" IDMode="Static" Layout="AnchorLayout">
<FieldDefaults LabelWidth="130" AllowBlank="false"/>
<Items>
<ext:TextField
ID="tfOriginal"
runat="server"
FieldLabel="Bestaand wachtwoord"
AnchorHorizontal="100%" ValidateOnBlur="false" ValidateOnChange="false"
MsgTarget="Side">
<Plugins>
<ext:PasswordMask runat="server" AllowAnyChars="true"/>
<ext:CapsLockDetector ID="ckdOriginal" runat="server">
<Listeners>
<CapsLockOn Handler="#{tfOriginal}.showIndicator({iconCls : '#Error', tip : 'CapsLock is actief'});" />
<CapsLockOff Handler="#{tfOriginal}.hideIndicator();" />
</Listeners>
</ext:CapsLockDetector>
</Plugins>
</ext:TextField>
<ext:TextField
ID="tfNew"
runat="server"
FieldLabel="Nieuw wachtwoord"
AnchorHorizontal="100%"
MsgTarget="Side"
>
<Listeners>
<ValidityChange Handler="this.next().validate();" />
<Blur Handler="this.next().validate();" />
</Listeners>
<Plugins>
<ext:PasswordMask runat="server" AllowAnyChars="true" />
<ext:CapsLockDetector ID="cldNew" runat="server">
<Listeners>
<CapsLockOn Handler="#{tfNew}.showIndicator({iconCls : '#Error', tip : 'CapsLock is actief'});" />
<CapsLockOff Handler="#{tfNew}.hideIndicator();" />
</Listeners>
</ext:CapsLockDetector>
</Plugins>
</ext:TextField>
<ext:TextField ID="tfRepeat"
runat="server"
Vtype="password"
VtypeText="Wachtwoorden zijn niet gelijk"
FieldLabel="Herhaal wachtwoord"
MsgTarget="Side"
AnchorHorizontal="100%">
<CustomConfig>
<ext:ConfigItem Name="initialPassField" Value="tfNew" Mode="Value" />
</CustomConfig>
<Plugins>
<ext:PasswordMask runat="server" AllowAnyChars="true"/>
<ext:CapsLockDetector ID="cldRepeat" runat="server">
<Listeners>
<CapsLockOn Handler="#{tfRepeat}.showIndicator({iconCls : '#Error', tip : 'CapsLock is actief'});" />
<CapsLockOff Handler="#{tfRepeat}.hideIndicator();" />
</Listeners>
</ext:CapsLockDetector>
</Plugins>
</ext:TextField>
</Items>
<Buttons>
<ext:Button ID="tbOpslaan" runat="server" Text="Opslaan" Icon="Disk">
<%-- <Listeners>
<Click Handler="var valid= #{fpPassword}.getForm().isValid(); if (valid) App.direct.OpslaanPassword();" />
</Listeners>--%>
</ext:Button>
</Buttons>
</ext:FormPanel>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Last edited by Daniil; Sep 17, 2013 at 5:30 AM.
Reason: [CLOSED]