Re: Is it me, or the search doesn't work?

2016-04-14 Thread Vladimir Panteleev via Digitalmars-d
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.


Re: Is it me, or the search doesn't work?

2016-04-14 Thread Andrei Alexandrescu via Digitalmars-d

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




Re: Is it me, or the search doesn't work?

2016-04-14 Thread w0rp via Digitalmars-d
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.


Re: Is it me, or the search doesn't work?

2016-04-14 Thread Vladimir Panteleev via Digitalmars-d
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.




Re: Is it me, or the search doesn't work?

2016-04-14 Thread Steven Schveighoffer via Digitalmars-d

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=google-search=hello=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=google-search==hello=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


Is it me, or the search doesn't work?

2016-04-14 Thread Andrei Alexandrescu via Digitalmars-d

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