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
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:
And here’s the function itself incase you don’t want to go and read the article (which you should):
All credit goes to the owner of FurryBrains.com for writing the article.