rudyten2000 Posted January 23, 2009 Report Posted January 23, 2009 i have a Form that allows a user to change password. I capture NEW PASSWORD Then I make user RE-ENTER NEW PASSWORD and then I capture current password. Works all good. But.. Sometimes firefox, IE, remembers values.... So on change, instead of being BLANK it is initialized with "****" I want all 3 PWD to be BLANK on arrival, and to be always be BLANK on any ERROR error. Am not sure this is even possible..... Thanks Rudy PS, Nice job on forum Quote
PicnicTutorials Posted January 23, 2009 Report Posted January 23, 2009 (edited) Possibly, you could slightly change the naming structure. Instead of "password", you could name it "pass word" or "pass-word" or "*password". Maybe..? I know if you name input fields something different FX won't pre-fill them. But, in this case, FX is actually remembering it, maybe different? Edited January 23, 2009 by Eric Quote
falkencreative Posted January 23, 2009 Report Posted January 23, 2009 If you include value="" in your input, I believe that should automatically clear it whenever the page is loaded... Have you tried that already? Quote
PicnicTutorials Posted January 23, 2009 Report Posted January 23, 2009 If you include value="" in your input, I believe that should automatically clear it whenever the page is loaded... Have you tried that already? If that works, that's much better than my stupid idea. Quote
gazdzid Posted January 23, 2009 Report Posted January 23, 2009 (edited) This maybe a refresh issue being new to html this is what I experienced when working with fields on a browser within my local machine 1. if I add an entry then press Function5 (F5) button my entry remains. 2. If I make a change to the source file and save (open press space bar) 3. now press F5 button everything clears Not sure if this is the issue Edited January 23, 2009 by gazdzid Quote
rudyten2000 Posted January 24, 2009 Author Report Posted January 24, 2009 Nope, I gave up on it... have bigger fish to fry. I guess it has to do with browser setting of auto-fill If i clear everything in options, then it looks nice...minute i type something in...firefox asks me if i wanna save it.. then it starts all over if i say yes. I guess the key thing is to use a different form field name, make sure it does not to match the form field name in the login page. Thanks for the input anyways guys Rudy Quote
jlhaslip Posted January 26, 2009 Report Posted January 26, 2009 script Code: <br />/*<![CDATA[*/<br />function clearText(field){<br /> if (field.defaultValue == field.value) field.value = '';<br /> else if (field.value == '') field.value = field.defaultValue;<br /> }<br />/*]]>*/<br /> HTML code: Your First Name: The onfocus/onblur will empty the text field on focus and replace the default value if it remains empty. Demo: http://www.jlhaslip.trap17.com/scripts/sticky_redux.php Try adding you first name and then click on the last name field, then the submit button to see how it works. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.