GithubHelp home page GithubHelp logo

Comments (11)

ablanco avatar ablanco commented on August 24, 2024

If I have understood your problem, what you need to do is to call the plugin only on the actual password input, instead of on both of them.

http://jsbin.com/vobixamaha/1/edit?html,js,output

Hope that helps. If not, feel free to reopen the issue.

from jquery.pwstrength.bootstrap.

tharangakuma avatar tharangakuma commented on August 24, 2024

@ablanco yes you have understood my problem correctly. But one this is just I need to display this progress bar when typing actual password not confirm password.

Is it possible to do?
Thank you.

from jquery.pwstrength.bootstrap.

ablanco avatar ablanco commented on August 24, 2024

In the link I put in my previous comment, the progress bar only updates when the user types in the actual password field, not the confirm one.

from jquery.pwstrength.bootstrap.

tharangakuma avatar tharangakuma commented on August 24, 2024

yes.. its correct. but problem is I need to display this progress bar below the conform password field. Is it possible?

from jquery.pwstrength.bootstrap.

ablanco avatar ablanco commented on August 24, 2024

Yes it is. You have to add a container under the confirm password, and pass a reference (or a selector) to the plugin using the viewport options. You can find more details about that option in the readme.

from jquery.pwstrength.bootstrap.

tharangakuma avatar tharangakuma commented on August 24, 2024

There is another problem. It is, if an user can not create a strong password then he/she can create a computer generated password. Check my JSBin. There are two buttons one for generate the password and other one is to use the generated password. When this "use password" button click on the generated password is autofillling to my actual and confirm password fields. These are working for me.

But my problem is when updating this generating password then its progress bar is not working.
This is working for copy/paste and typed password, but not working for auto complete.

Hope you may help me out.
Thank You.

from jquery.pwstrength.bootstrap.

ablanco avatar ablanco commented on August 24, 2024

The strength meter listen to some events to update itself. When you change the content through JS no event is fired, and that's why it doesn't update. You have to manually trigger the event. Do something like this in your code, just after changing the input value: $('#password').trigger('keyup');

from jquery.pwstrength.bootstrap.

tharangakuma avatar tharangakuma commented on August 24, 2024

One problem is solved. But last one is still reaming. This is my updated JSbin -
http://jsbin.com/miyifufeza/1/edit

UPDATE :
According to your last comment I tried but then its not working at all
http://jsbin.com/vayitaxofo/1/edit?html,js,output

from jquery.pwstrength.bootstrap.

ablanco avatar ablanco commented on August 24, 2024

http://jsbin.com/zinuvomeqe/1/edit?html,js,output

I added the line that triggers the event after updating the password field content.

from jquery.pwstrength.bootstrap.

tharangakuma avatar tharangakuma commented on August 24, 2024

Thank you very much for your help. Since I am new to jquery its hard to understand that particular code..

from jquery.pwstrength.bootstrap.

ablanco avatar ablanco commented on August 24, 2024

You are welcome. jQuery is easy, you will be up to speed in no time :)

from jquery.pwstrength.bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.