Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Firefox is remembering input values

  • 7 trả lời
  • 11 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi 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!

Tất cả các câu trả lời (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.

Được chỉnh sửa bởi Wesley Branton vào

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.