본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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.