www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Is it me, or the search doesn't work?

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
1. Go to http://dlang.org

2. Type hello in the search box.

3. Press Enter

You'll be sent to a Google search for hello restricted to 
site:dlang.org. Nice.

Now do this:

1. Go to https://dlang.org/library/index.html (or anywhere under /library/).

2. Type hello in the search box.

3. Press Enter

The hello part is lost. You'll be sent to a Google search restricted to 
site:dlang.org but no hello.

What is happening there?


Thanks,

Andrei
Apr 14 2016
next sibling parent Steven Schveighoffer <schveiguy yahoo.com> writes:
On 4/14/16 4:31 PM, Andrei Alexandrescu wrote:
 1. Go to http://dlang.org

 2. Type hello in the search box.

 3. Press Enter

 You'll be sent to a Google search for hello restricted to
 site:dlang.org. Nice.
GET url is: https://www.google.com/search?domains=dlang.org&sourceid=google-search&q=hello&sitesearch=dlang.org
 Now do this:

 1. Go to https://dlang.org/library/index.html (or anywhere under
 /library/).

 2. Type hello in the search box.
GET url is: https://www.google.com/search?domains=dlang.org&sourceid=google-search&q=&symbolSearch=hello&sitesearch=dlang.org%2Flibrary Seems like an error in the way the URL is generated. Looks like it should be "q=hello", but it's "q=" -Steve
Apr 14 2016
prev sibling parent reply Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
On Thursday, 14 April 2016 at 20:31:11 UTC, Andrei Alexandrescu 
wrote:
 What is happening there?
Looking at the code, it appears to be "by design". Pressing the Enter key is simply not handled, instead it seems that you are expected to type a search term, then click with your mouse on one of the completion suggestions.
Apr 14 2016
next sibling parent w0rp <devw0rp gmail.com> writes:
On Thursday, 14 April 2016 at 20:55:24 UTC, Vladimir Panteleev 
wrote:
 On Thursday, 14 April 2016 at 20:31:11 UTC, Andrei Alexandrescu 
 wrote:
 What is happening there?
Looking at the code, it appears to be "by design". Pressing the Enter key is simply not handled, instead it seems that you are expected to type a search term, then click with your mouse on one of the completion suggestions.
From what I can see, there is an input field with name="q" which is hidden and replaced instead with another input field with no name, which has the placeholder "API Search". When you press return, it submits the form with a blank value, because you aren't typing text into the input field for the search query, which is hidden. I don't know what's really intended there, but that's what's happening.
Apr 14 2016
prev sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 04/14/2016 04:55 PM, Vladimir Panteleev wrote:
 On Thursday, 14 April 2016 at 20:31:11 UTC, Andrei Alexandrescu wrote:
 What is happening there?
Looking at the code, it appears to be "by design". Pressing the Enter key is simply not handled, instead it seems that you are expected to type a search term, then click with your mouse on one of the completion suggestions.
Well I hope we agree it's a bug. Pressing Enter does a useless thing. -- Andrei
Apr 14 2016
parent Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
On Friday, 15 April 2016 at 00:29:20 UTC, Andrei Alexandrescu 
wrote:
 On 04/14/2016 04:55 PM, Vladimir Panteleev wrote:
 On Thursday, 14 April 2016 at 20:31:11 UTC, Andrei 
 Alexandrescu wrote:
 What is happening there?
Looking at the code, it appears to be "by design". Pressing the Enter key is simply not handled, instead it seems that you are expected to type a search term, then click with your mouse on one of the completion suggestions.
Well I hope we agree it's a bug. Pressing Enter does a useless thing. -- Andrei
Yeah. The autocomplete popup should probably also be rewritten as an HTML5 datalist.
Apr 14 2016