JqxPasswordInput: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Created page with "File:Jqxpasswordinput.png == Description == jqxPassword manages inputting passwords. It features the ability to measure the strength of passwords. jqWidgets is a comme..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
== Properties and Methods ==  
== Properties and Methods ==  


See the complete documentation at jqWidget's site:  
This control is well documented on the jqWidget's website: http://www.jqwidgets.com/jquery-widgets-documentation/.
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxpasswordinput/index.htm?(arctic)#demos/jqxpasswordinput/defaultfunctionality.htm


{| class='wikitable'
{| class='wikitable'
Line 24: Line 23:
|-
|-
| showStrength || Gets or sets whether a tooltip which shows the password's strength will be shown.
| showStrength || Gets or sets whether a tooltip which shows the password's strength will be shown.
|}  
|}
== Example (Basic) ==


<pre>
== Example ==
Function PasswordInput2_onchange()
  If PasswordInput1.value <> PasswordInput2.value Then
    MsgBox "Passwords do not match!"
  End If
End Function


</pre>
<tabber>
 
JavaScript=
== Example (JavaScript) ==
<syntaxhighlight lang="JavaScript">
<pre>
PasswordInput2.onchange = function() {
PasswordInput2.onchange = function() {
     if (PasswordInput1.value != PasswordInput2.value) {
     if (PasswordInput1.value != PasswordInput2.value) {
Line 43: Line 35:
     }
     }
}
}
</pre>
</syntaxhighlight>
|-|
BASIC=
<syntaxhighlight lang="vb.net">
Function PasswordInput2_onchange()
  If PasswordInput1.value <> PasswordInput2.value Then
    MsgBox "Passwords do not match!"
  End If
End Function
</syntaxhighlight>
</tabber>


== Output ==
== Output ==

Latest revision as of 21:57, 24 July 2019

Description

jqxPassword manages inputting passwords. It features the ability to measure the strength of passwords.

jqWidgets is a commercial product, which depending on how you use it, requires a license fee. Complete details are on jqWidget's website. The product is well supported.

Properties and Methods

This control is well documented on the jqWidget's website: http://www.jqwidgets.com/jquery-widgets-documentation/.

maxLength Set maximum number of characters for password
name Key in submitted form
onchange This event is triggered when the value is changed and the control's focus is lost.
placeHolder Placeholder text
showPasswordIcon Gets or sets whether the Show/Hide password icon will appear.
showStrength Gets or sets whether a tooltip which shows the password's strength will be shown.

Example

PasswordInput2.onchange = function() {
    if (PasswordInput1.value != PasswordInput2.value) {
        NSB.MsgBox("Passwords do not match!");
    }
}

Function PasswordInput2_onchange()
  If PasswordInput1.value <> PasswordInput2.value Then
    MsgBox "Passwords do not match!"
  End If
End Function

Output

See above.