Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 872799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:50:15+00:00 2026-05-15T10:50:15+00:00

I have a simple problem that I cannot seem to find a solution to.

  • 0

I have a simple problem that I cannot seem to find a solution to.

Basically on this website here: http://dev.supply.net.nz/vendorapp/ (currently in development)
I have some fancy label animations sliding things in and out on focus & blur.

However once the user has logged in once the browser will most likely remember the password associated with the users email address/login. (Which is good and should not be disabled.)

However I run into issues triggering my label slide out animation when the browser sets the value on the #password field automatically as the event for this is neither focus nor blur.

Does anyone know which listener to use to run my function when the browser ‘auto fills’ the users password?

Here is a quick screenshot of the issue:

Password Autofill Label Issue http://dl.dropbox.com/u/376243/fill_issue.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:50:15+00:00Added an answer on May 15, 2026 at 10:50 am

    I recently read an article called Capturing AutoFill as a Change Event that just may be what you’re looking for. The author created a function called listenForChange() that monitors a field for form autofilling activity (is autofilling even a word?). Since it checks your form really frequently I personally suggest you to only run this a certain number of times. After all a form auto-fill will usually do its work as soon as the page has finished loading.

    Quoting the original article:

    The plugin makes use of the trigger() and data() functions. In a nutshell,
    we loop over the input element or set
    of children input elements, storing
    their initial value in the data cache
    provided by the data() function. We
    then check to see if the stored value
    matches the value of the input during
    the current iteration. If so, we do
    nothing, if not, we manually fire the
    change event via trigger(). There’s
    also a bit of logic in there to ignore
    the element that has focus. We don’t
    need to worry about this element,
    since if the value is changed while
    the user has focus, the change event
    will be fired as normal when the
    element is blurred.

    And here’s the function itself incase you don’t want to go and read the article (which you should):

    (function($) {
        $.fn.listenForChange = function(options) {
            settings = $.extend({
                interval: 200 // in microseconds
            }, options);
    
            var jquery_object = this;
            var current_focus = null;
    
            jquery_object.filter(":input").add(":input", jquery_object).focus( function() {
                current_focus = this;
            }).blur( function() {
                current_focus = null;
            });
    
            setInterval(function() {
                // allow
                jquery_object.filter(":input").add(":input", jquery_object).each(function() {
                    // set data cache on element to input value if not yet set
                    if ($(this).data('change_listener') == undefined) {
                        $(this).data('change_listener', $(this).val());
                        return;
                    }
                    // return if the value matches the cache
                    if ($(this).data('change_listener') == $(this).val()) {
                        return;
                    }
                    // ignore if element is in focus (since change event will fire on blur)
                    if (this == current_focus) {
                        return;
                    }
                    // if we make it here, manually fire the change event and set the new value
                    $(this).trigger('change');
                    $(this).data('change_listener', $(this).val());
                });
            }, settings.interval);
            return this;
        };
    })(jQuery);
    

    All credit goes to the owner of FurryBrains.com for writing the article.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 440k
  • Answers 440k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer After trying @falconcreek's answer and getting an error (described in… May 15, 2026 at 5:19 pm
  • Editorial Team
    Editorial Team added an answer In POSIX, names ending with _t are reserved, so if… May 15, 2026 at 5:19 pm
  • Editorial Team
    Editorial Team added an answer You can achieve the same thing in Windows 7 by… May 15, 2026 at 5:19 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.