Log in

View Full Version : Firefox Form Problem



KraftyDood
12-15-2006, 06:56 AM
I am having a problem with Firefox (1.0.7). A simple page, with a text input control on it, with a preset value of "5".

The first time I bring up the page, the "5" is showing. If I go into the text box and change it to a "3", and then click refresh, the "3" stills on the refreshed page, even though if I view the Page Source the html is showing value="5". This doesn't happen in IE - what is causing Firefox to behave like this.




<HTML>
<HEAD>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
</HEAD>

<BODY>
<FORM name="viewForm" action="dummy" method="POST" >
<INPUT type="text" name="il" value="5" />
</FORM>

</BODY>
</HTML>

KraftyDood
12-15-2006, 07:09 AM
Adding autocomplete="off" to the form tag seems to have stopped the unwanted behaviour.

I had thought you actually had to start typing something for 'autocomplete' to do something. I didn't realize it would also affect the pre-loading of values into form controls.

Does this seem right?