为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox is remembering input values

  • 7 个回答
  • 11 人有此问题
  • 3 次查看
  • 最后回复者为 cor-el

more options

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!

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!

所有回复 (7)

more options

Try the following:

  1. Go to the Firefox options
  2. Select the Privacy tab
  3. Select Use Custom Settings For History from the drop-down under the History section
  4. Uncheck the Remember Search And Form History checkbox

Please report back soon.

由Wesley Branton于修改

more options

Sorry, this did not fix the issue. Thanks for your reply though

more options

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.

more options

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:

  1. Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
  2. Under "Time range to clear", select "Everything".
  3. Now, click the arrow next to Details to toggle the Details list active.
  4. From the details list, check Cache and Cookies and uncheck everything else.
  5. 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.

more options

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.

more options

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.

more options

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.