Re: strange behaviour in QF hierselect default values

From: Date: Thu, 03 Feb 2005 19:29:11 +0000
Subject: Re: strange behaviour in QF hierselect default values
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17366@lists.php.net to get a copy of this message
On Thu, 3 Feb 2005 11:51:13 -0700, Ray Still <rstill74@hotmail.com> wrote: > Hello, > I'm seeing some strange behaviour from QF with the hierselect element. > (may be a netscape incompatibility) > For test code I'm using example 32.2 from the documentation on: > > > http://www.pear.php.net/manual/en/package.html.html-quickform.html-quickform-hierselect.php > > (the following uses netscape) > Everything works well, until you refresh, or return to the page. > Select, for example; Classical ->Wagner->15.00$ > Hit refresh > Now Displayed; Classical -> Red Hot Chil Peppers -> [blank] > Restraining myself from any musical comments. :) > > Since I.E. resets to Pop -> Artist -> [blank] on reload regardless of previous selection, > this may be a Netscape Incompatibility. > > I guess the question becomes, is there a work-around besides don't allow reloads? > or netscape :( Well, I'm not sure about "Netscape" but FireFox will keep form values whne you refresh. It overrides whatever selection you have in your form. I could see this kind of thing happening if the id or name of the form elements change (hence the browser doesn't know what to reset to) or if the value sin the select boxes are changing. I don't know of any way to stop FireFox from *not* keeping form values when you refresh except for putting JS in your page to reset the values onLoad. -- Justin Patrin

« previous php.pear.general (#17366) next »