Although the search from $wgAjaxSearch = true is prettier at this
stage, I like where Adam puts the hits, and I like the more complete
search (and that's working from his first version... I haven't
recopied his code yet). What I'd like even better is one that works
like the autocomplete at
http://wormbase.org, where the results create
a dropdown menu over the search box, and you can arrow-key down to
select the one you want. I was at there when the wormbase programmers
implemented this, and IIRC they had to tinker with the yahoo libraries
to get it to act more like the google suggest. I'm not completely
sure whether that's what they did in the end. I know they started
with some open source js libraries and tweaked them. An important
thing was to not have the autocomplete actually fill the search box
unless the user actively selected the suggestion. They didn't do that
initially and had a major revolt from their users, which is why they
have the checkbox to provide an option to turn it off.
I'm bad a js, so I don't know if you can extract the relevant code
from the website in a way that's useful.
Jim
On Mar 3, 2008, at 6:43 PM, Adam Meyer wrote:
It is very close. Except, the built in wgAjaxSearch
wipes out the
entire content of a page when you start to type. The page content does
not come back until you actually do a complete search, and reload the
page.
This extension does the same search, except it places the results in a
non obtrusive place, IE below the the search. The search also searches
the entire name of articles, not just the beginning. So... searching
for foam will return both foam-core and working with foam-core.
Other places have a very similar search, but it uses Yahoo's
javascript library and is 200k of code.
-Adam
On Mar 3, 2008, at 3:41 AM, Jack Eapen C wrote:
>
> Hi All,
>
> I'm a little bit confused...
>
> What this extension is doing other than $wgAjaxSearch=true in
> localsetting.php is doing?
>
> I think if we put that in localsetting.php, it does the same thing
> as of
> this extension.. Or am I mistaken?
>
>
> Regards,
>
> Jack Eapen
> ----------------------------------------------------------------
> "May He protect us both. May He cause us both to enjoy.May we exert
> together. May our studies become brilliant. May we not hate each
<snip>