Hi Shawn,

--- Brent Beardsley <[EMAIL PROTECTED]> wrote:

> Hi Shawn,
> 
> --- "Shawn K. Hall" <[EMAIL PROTECTED]>
> wrote:
> 
> > We _should_ be handling the autodetection stack
> with
> > an array and
> > let individual searches add themselves to the
> stack
> > by adding
> > themselves to the stack (probably with a simple
> > addAutodetect()
> > function), and that way newer searches that wanted
> > to support
> > autodetect. The stack would look and function like
> > the aliases
> > stack.
> 
> I whole-heartedly agree - I briefly looked into
> autodetect a while ago and got scared off because I
> didn't want to modify search.htm - and I hadn't
> thought of using the new onload functionality.  The
> only issue I see is the order of how the searches
> load
> (I think it's alphabetical).  The first one to load
> will get to handle it first.  I have the same
> problem
> with the hotkeys.  Google search has a hotkey
> associated with it that I want to use but since my
> search loads after it I can't assign the hotkey to
> my
> search (well I can assign it but it always triggers
> the google search).

Actually how about if search.htm autodetects the
autodetect function (look for a function called the
search name plus _autodetect appended and then call
the addAutodetect function for that.  That way it'd be
easier to use for the search writers but then onload
could still call addAutodetect if it needed to do
fancier things.

Brent


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Archive: https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to