php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25786 do not remember last search phrase
Submitted: 2003-10-08 04:20 UTC Modified: 2009-03-10 15:20 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:3 (75.0%)
From: tipsen at imada dot sdu dot dk Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: -
Private report: No CVE-ID: None
 [2003-10-08 04:20 UTC] tipsen at imada dot sdu dot dk
Description:
------------
My "problem" is an annoying feature/bug on the main website of PHP. The search box remembers my last search phrase and I can't find a way to avoid it other than deleting my cookies. I'm certain that this behaviour is a feature of the search function but I find it rather annoying since I rarely search for precisely the same stuff several times in a row.

Normally I search for different stuff and I tend to use the keyboard shortcut (Alt+s) right after the search box appears in my browser which is normally before the entire page has finished loading. However when the page has finished loading the old search phrase is inserted into the search box and often my new search phrase is overwritten which is quite annoying!

I hope you would consider removing this feature or at least make it customizable by the users (like the language settings etc).

Have a nice day :-)

Cheers,

Tommy Ipsen


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-08 04:40 UTC] sniper@php.net
It would help if you submit these kind of bugs to the right category..

 [2003-10-08 05:10 UTC] goba@php.net
A better search aid is in the works, and while adding that to our feature set, we will add a setting for people to disabled this "annoying feature".
 [2003-10-08 12:17 UTC] tipsen at imada dot sdu dot dk
sniper: Unfortunately I wasn't able to locate the right category and regrettably your comment didn't enlighten me further...

goba: Sounds promising - looking forward :-)
 [2003-12-03 07:11 UTC] mail at andybev dot com
My main problem with this 'feature' is not so much that it is annoying, but more because the previous search phrase is inserted long after the text box is loaded - which as mentioned overwrites whatever you're typing.

So how about 'remembering' the text a lot earlier, so that when you start typing in a search, it is not overwritten.
 [2003-12-03 11:54 UTC] goba@php.net
As you can see the implemtantion of searchHistory() in http://www.php.net/userprefs.js, you can check that we do check the length of the input field if there is any content in it, and only put in the previous search term, if there is nothing typed in there... This solution might not fit all browsers. We have introduced that check long ago, at a similar user request, and that user was satisfied with this solution, so it worked in his browser. Since you have not provided info on what browser you use, it is quite hard to say anything about the problem...
 [2003-12-04 06:25 UTC] tipsen at imada dot sdu dot dk
I was using IE6 on a W2K platform at the time. I just checked and it seems like the "strlen>0" condition actually works!

I tried using the manual-pages like I normally do and discovered that I'm using Alt+s to focus the search field as soon as it is displayed in the browser. After focussing the field I begin typing my search phrase but most of the time the field is filled with my last search phrase just before I begin typing and I need to delete the old search phrase or focus the field again by pressing Alt+s.

It is a minor problem but when you're using the php manual 30-50 times a day it becomes annoying when you perhaps only reuse your old search phrase one or two times!

I've actually considered disabling cookies just too avoid this "feature" :-)
 [2003-12-04 12:20 UTC] goba@php.net
We are trying to make the autocomplete feature work on all possible browsers, and not cause any error messages on browsers where it does not work, so we can replace the whole remembering feature with the autocomplete.

The most annoying problem currently with the autocomplete is that it interferes with some IEs autocomplete. Although we have code in the JS to disable the autocomplete programatically... It works in some IEs, but we need time to figure out, why it does not work in other IEs...
 [2009-03-10 15:20 UTC] kalle@php.net
This behavoir seems to have been removed years ago, closing
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 02:01:30 2024 UTC