Hi Brent,

> > 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.

Works for me, as long as it the autodetection for autodetection
handlers are autodetected during load and not at each search. I'd
hate to throw away all this performance increase we've gained.

I think the automated method could also provide the end-user with an
easy option to disable the autodetect method by setting a variable
of a similar name (autodetect_%searchname%_enabled=false;) to false.
This variable would default to true.

The same could be done for keyhook handlers
(gg_keypressHook_enabled=false;).

Hmm. Since those functions generally have a different formatting
(%searchname%_keypressHook()) we might be better off standardizing
naming for all of this type of code.

I vote for "%searchname%_%method%" - it'll be easier to find related
variables for those searches that use additional variables (many of
the searches I create provide user settings via variables of name
(%searchname%%varname% and %searchname%_%varname%).

Regards,

Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/

'// ========================================================
    Writing is not necessarily something to be ashamed of,
    but do it in private and wash your hands afterwards.
        -- Robert Heinlein




-------------------------------------------------------
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