Firefox is remembering input values
I am having an issue with firefox caching input values. I have checked that this is not happening in other browsers. I found a couple articles that told me to add the autocomplete="off" attribute to my form or input element, but neither solved my issue.
One weird thing that is happening is, when I save a record the first time of being on the page, the values in the input are cleared, however anytime I try after the first, the values stay.
I am using an ajax form and using firefox 24.0. Also the input type="number" if that helps narrow it down at all.
Thanks in advance!
Alle Antworten (7)
Try the following:
- Go to the Firefox options
- Select the Privacy tab
- Select Use Custom Settings For History from the drop-down under the History section
- Uncheck the Remember Search And Form History checkbox
Please report back soon.
Geändert am
Sorry, this did not fix the issue. Thanks for your reply though
You probably need to do a hard reload (Ctrl+F5) to clear (reset) form entries.
With a normal reload Firefox will load input values from the cache.
Another possibility would be use a script to initialize form entries on loading the page.
Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache. Note: This will temporarily log you out of all sites you're logged in to. To clear cache and cookies do the following:
- Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
- Under "Time range to clear", select "Everything".
- Now, click the arrow next to Details to toggle the Details list active.
- From the details list, check Cache and Cookies and uncheck everything else.
- Now click the Clear now button.
Further information can be found in the Clear your cache, history and other personal information in Firefox article.
Did this fix your problems? Please report back soon.
Just a normal refresh will make the values go back to zero, but the issue is when I add a record to the database and send back the values as zero, the browser is still remembering the latest value. It is only being replaced with zero on the very first record that is being saved.
Sorry, clearing the cache and cookies didn't work either. I am looking for a way to do this programmatically. I don't want to have to tell my user to change a setting in their browser if possible.
Try to to ask advice at the mozillaZine "Web Development/Standards Evangelism" forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.