metacpan / js-metacpan-org

Proof of concept search page for using api.metacpan.org
28 stars 6 forks source link

Search results should be actual links that can be opened in a new tab #30

Open michaelr opened 13 years ago

michaelr commented 13 years ago

Currently clicking on search results replaces the current page. This is not standard web ui behavior.

OpossumPetya commented 13 years ago

well, it's actually recommended in the web usability world to open links in the same window. but that's just because normal html (not javascript) links can be opened in the new tab/window by user via other means (corresponding context menu item, or click in combination with a key - usually Ctrl). but here it's javascript links, so we can't open them in a new tab,

So, I agree with michaelr.

ioncache commented 13 years ago

Well currently each row of the search results have a click event attached to them to open the module/author/dist.

I'd like to keep that in place as it makes for a fairly intuitive interface.

However what I could do is add a link to the module/author/dist name itself so that could be right-clicked and opened in a new tab if desired etc.

Currently the dist name and author name on the moduel search results list works in this manner.

michaelr commented 13 years ago

An intuitive interface behaves in a manner that people expect. I think anyone familiar with the web would not expect this behavior. Just my two cents.

For an example of an intuitive interface look at github's src browser. If you click on a file it loads it via ajax with a scrolling animation, similar to this search interface; however, if you click using whatever method you use to open a new tab it opens a new tab as expected.

best wishes, michael

On Mon, Jun 27, 2011 at 4:53 PM, ioncache reply@reply.github.com wrote:

Well currently each row of the search results have a click event attached to them to open the module/author/dist.

I'd like to keep that in place as it makes for a fairly intuitive interface.

However what I could do is add a link to the module/author/dist name itself so that could be right-clicked and opened in a new tab if desired etc.

Currently the dist name and author name on the moduel search results list works in this manner.

Reply to this email directly or view it on GitHub: https://github.com/CPAN-API/search-metacpan-org/issues/30#issuecomment-1450729