[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Bug#11676: enter page with back button doesn't restore <select> values
From:       Daniel Naber <dnaber () mini ! gt ! owl ! de>
Date:       2000-09-24 23:34:33
[Download RAW message or body]

Package: khtml
Version: cvs 2000-09-23

Text fields etc are restored to the values I chose, but not <select> 
boxes. The shell says:

konqueror: insertNode failed current=75, new=96!
QComboBox::setCurrentItem: (unnamed) Index 1 out of range

Of course index 1 is the one that should be selected (and it's there!).

You can test it with this page (which validates, BTW). The target in the 
form tag can be anything....). Select some value, submit, go back -> the 
selected value will not be restored, instead "bla" will be selected again.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<TITLE>konqi tests</title>
</head>
<body>

<form action="http://localhost/test.php">
	<input type="radio" name="myradio" value="eins">eins
	<input type="radio" name="myradio" value="zwei">zwei<br>
	<select name="myselection">
		<option value="1">bla
		<option value="2">bla2
		<option value="3">bla3
	</select>
	<input name="mytextinput">
	<input type="submit">
</form>

</body>
</html>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic