Home

Results 1 to 5 of 5

Thread: Compare two Password fileds

  1. #1
    Join Date
    Sep 2008
    Posts
    1

    Compare two Password fileds


    Hello,

    I am attempting to compare two fields with the Control Type of
    Password. I am able to do the compare when the fields are Control Type
    Text. When i attempt to use the same code used for comparting "text"
    for the "password" it looks as if it is not able to see the values.

    How do I "see" the password text to do the compare?

    Thanks!


    --
    THowarth
    ------------------------------------------------------------------------
    THowarth's Profile: http://forums.novell.com/member.php?userid=30114
    View this thread: http://forums.novell.com/showthread.php?t=448432


  2. #2
    Wolfgang Schreiber NNTP User

    Re: Compare two Password fileds

    As the docs indicate:
    "The password control can only be submitted. It does not support any
    script such as getValues() or setValues()."

    So, there no way to get and compare such fields.

    When I ran into a similar problem I put the fields as html fields
    (passwords input) on the form. After checking the dual pwd input I
    passed the pwd to a hidden text field.

    Wolfgang


    On 18.11.2011 19:56, THowarth wrote:
    >
    > Hello,
    >
    > I am attempting to compare two fields with the Control Type of
    > Password. I am able to do the compare when the fields are Control Type
    > Text. When i attempt to use the same code used for comparting "text"
    > for the "password" it looks as if it is not able to see the values.
    >
    > How do I "see" the password text to do the compare?
    >
    > Thanks!
    >
    >


  3. #3
    Wolfgang Schreiber NNTP User

    Re: Compare two Password fileds

    PS: alternatively you may check if you can retrieve the pwd input with
    jquery or DOM methods

    Wolfgang

    On 18.11.2011 23:56, Wolfgang Schreiber wrote:
    > As the docs indicate:
    > "The password control can only be submitted. It does not support any
    > script such as getValues() or setValues()."
    >
    > So, there no way to get and compare such fields.
    >
    > When I ran into a similar problem I put the fields as html fields
    > (passwords input) on the form. After checking the dual pwd input I
    > passed the pwd to a hidden text field.
    >
    > Wolfgang
    >
    >


  4. #4
    Steven Williams NNTP User

    Re: Compare two Password fileds

    On 11/18/2011 05:59 PM, Wolfgang Schreiber wrote:
    > PS: alternatively you may check if you can retrieve the pwd input with
    > jquery or DOM methods
    >
    > Wolfgang
    >
    > On 18.11.2011 23:56, Wolfgang Schreiber wrote:
    >> As the docs indicate:
    >> "The password control can only be submitted. It does not support any
    >> script such as getValues() or setValues()."
    >>
    >> So, there no way to get and compare such fields.
    >>
    >> When I ran into a similar problem I put the fields as html fields
    >> (passwords input) on the form. After checking the dual pwd input I
    >> passed the pwd to a hidden text field.
    >>
    >> Wolfgang
    >>
    >>

    You can with JQuery

    --
    Sincerely,
    Steven Williams
    Lead Software Engineer
    NetIQ

  5. #5
    Tobias Ljunggren NNTP User

    Re: Compare two Password fileds

    Hello,

    The following jQuery code will work if your fields are named password and verifyPassword:

    password=$("input#_password").val();
    verifyPassword=$("input#_verifyPassword").val();

    Best regards,
    Tobias
    On 2011-11-18 19:56, THowarth wrote:
    >
    > Hello,
    >
    > I am attempting to compare two fields with the Control Type of
    > Password. I am able to do the compare when the fields are Control Type
    > Text. When i attempt to use the same code used for comparting "text"
    > for the "password" it looks as if it is not able to see the values.
    >
    > How do I "see" the password text to do the compare?
    >
    > Thanks!
    >
    >



Posting Permissions

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