Saving Bytes Every Page - Or, How I Learned To Stop Worrying And Enhance Search

Nao

  • Dadman with a boy
  • Posts: 16,082
I don't get what you're trying to say...
If the popup shows up on focus, nothing forces anyone to use it..? Dismissing it (i.e. leaving its options as is) would then perform a regular quick search.

I was thinking, maybe I could push the destination select box to that popup, actually...
Okay, here's what I came up with...

Currently, it's hardcoded in the HTML, and shows on popup; it's just a mockup...

The HTML is pretty close to the Search template's, so we might be able to get away with pushing it to a separate template that we call in both situations, with some tweaks, but then it probably means we should do the same for PMs... (?)
Posted: March 1st, 2013, 06:37 PM

Oops, a classic, forgot the attachment... ;)

📎 search-popup.png - 23.89 kB, 338x421, viewed 272 times.


Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
The way it's meant to be

MultiformeIngegno

  • Posts: 1,337

Asgard

  • So Many Searches, Why Have So Many Searches, One Search Is Enough
  • Posts: 56
Quote from Nao on March 1st, 2013, 06:39 PM
Currently, it's hardcoded in the HTML, and shows on popup; it's just a mockup...
That's not bad and it's much better than two items called Search on each page. Though my initial thoughts were to just leave the normal search as is and have a link or some-such to go to the advanced search page. Like just an arrow attached to the Search button or something that would take you to the advanced search page or on hover tell you that's what it does.

Quick mock-up art attached.

📎 searcharrow.jpg - 8.66 kB, 90x36, viewed 172 times.


Nao

  • Dadman with a boy
  • Posts: 16,082
Nice mockup, but it's a kind of button that would be a hassle to implement, compared to the level of use in Wedge... :^^;:

Dragooon, well, good question but... Honestly, have you tried Wedge without JavaScript on...? It's usable, but barely. (Select boxes will not show up, for starters!)
Those users can start their search in the search box (which will STILL work without JS on), then on the next page, they can click the linktree to go back to the full search page... Or whatever suits them.

Okay, current status, the popup is called on focus, it still disappears after blur though, but it's just 'the beginning'... Also, the contents of the popup are now loaded through Ajax, as I previously announced. I'm having difficulties with jQuery though -- it looks like it's giving me internal errors. Oh, and it just froze my PC, too, for like a minute, while I was writing this post... Nice! :^^;:

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Quote
If the popup shows up on focus, nothing forces anyone to use it..? Dismissing it (i.e. leaving its options as is) would then perform a regular quick search.
My concern was actually activating it on mobile. Can you access it on mobile? iOS may prove awkward there ;)

My other objection is a usability one: having stuff hidden away on hover is not entirely usable unless there's a hint to it in some form, like we found with the thoughts menu.
Quote
The HTML is pretty close to the Search template's, so we might be able to get away with pushing it to a separate template that we call in both situations
I suppose whatever calls it just needs to not invoke the board listing code...
Quote
Though my initial thoughts were to just leave the normal search as is and have a link or some-such to go to the advanced search page.
That's what I originally implemented as a basic start.
Quote
Those users can start their search in the search box (which will STILL work without JS on), then on the next page, they can click the linktree to go back to the full search page... Or whatever suits them.
Wait.

How many users know that the linktree does that?
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

I love all this stuff, but I feel the one search does all would be best all around, one simple search field like at the top, search and be done with it. now the thing here that's concerns me is the load factor on the server if a bunch are searching the data base at the same time, but you can do as I've seen be for a limit the amount of search per set a time, and no search or controlled search for quest.

The link to the extended or advance search could be placed also as a tree link  :)like Mentioned or something there of!

but I love the drop down it could still be used for something I'm thinking of, will start new topic on another day!

regards,
maxx

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Quote
but I feel the one search does all would be best all around, one simple search field like at the top,
I'm not being funny but that simply isn't viable. It really isn't.

On another note, I think I need to tweak it, I think I accidentally changed its behaviour and not entirely in a good way - when coming from the quick search it'll include all boards, not just the ones you haven't ignored. (This is actually subtly different from old behaviour, but only subtly)

Go to sm.org, to their search page and look at how many boards they have. Now you want to search a couple of boards and only those boards. You can't stick that huuuuuuuuuge list of boards into the popup.
Quote
now the thing here that's concerns me is the load factor on the server if a bunch are searching the data base at the same time, but you can do as I've seen be for a limit the amount of search per set time, and now search or controlled search for quest.
None of that's changed, it's just as significant a problem now as it was yesterday before I changed anything.
Quote
The link to the extended or advance search could be place also as a tree link
Yes but how many people actually know what half the links actually do?

Do a search. The first link (Search) is the search form with the parameters put in, the second link (Search Results) is a permalink to the search results themselves. How many people knew about this?


Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841


Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278