*Jasper*
12-18-2007, 04:51 PM
Hello all,
In a quite complex project I am having a problem with FireFox (and possibly other browser, I am in an early stage of design and currently only tried FF and IE) caching form values for use when refreshing. When you refresh a page with a form and the fields you had filled are still filled, and in a complex web-application this might not be what you want.
I do not want the browser to do this, is there a way to disallow the browser doing this?
Note: I am looking for a solution that I can use as the developer, not some setting in the users browser. Nor am I looking for a way to stop suggestions based on what you previously typed - I am looking for a way to stop FireFox from actually filling fields.
For who is interested, the back story:
The input of this page is based upon spans and input fields, that should always have the same value. When you do not mouse-over only the span is visible, and when you do only the input field is visible. One of the pages is actually storing all the changes you make in the database through ajax. But this page is not supposed to save any changes, this page is to create "what if" scenarios. Whenever a value is changed in one of the input fields, the corresponding span is updated. So when value (A) is -50- at the moment, I click it (which means I have to mouseover first) and change it to -20-, both the input field and the span are changed to contain -20- now. When I press refresh next, my browser resets the span changed back to -50- (that's a literal in the html, it's been outputted there by php), but FireFox likes to be 'kind' and remember for us that the input field contained -20-, thus making sure the two are not the same, which should not happen...
In a quite complex project I am having a problem with FireFox (and possibly other browser, I am in an early stage of design and currently only tried FF and IE) caching form values for use when refreshing. When you refresh a page with a form and the fields you had filled are still filled, and in a complex web-application this might not be what you want.
I do not want the browser to do this, is there a way to disallow the browser doing this?
Note: I am looking for a solution that I can use as the developer, not some setting in the users browser. Nor am I looking for a way to stop suggestions based on what you previously typed - I am looking for a way to stop FireFox from actually filling fields.
For who is interested, the back story:
The input of this page is based upon spans and input fields, that should always have the same value. When you do not mouse-over only the span is visible, and when you do only the input field is visible. One of the pages is actually storing all the changes you make in the database through ajax. But this page is not supposed to save any changes, this page is to create "what if" scenarios. Whenever a value is changed in one of the input fields, the corresponding span is updated. So when value (A) is -50- at the moment, I click it (which means I have to mouseover first) and change it to -20-, both the input field and the span are changed to contain -20- now. When I press refresh next, my browser resets the span changed back to -50- (that's a literal in the html, it's been outputted there by php), but FireFox likes to be 'kind' and remember for us that the input field contained -20-, thus making sure the two are not the same, which should not happen...