Neel,

Sorry for the delay in CVS:ing this... I ran into some trouble with the
wrapped source lines, and I never managed to summon the energy to sort
it out.

Can you please re-post your searches/functions (randomsearch, sequence)
as attachments?
Also, sequence is too close to anything people may want to search for...
Could you rename it to 'seq'?

Thanks a lot,
Kim

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Neel Doshi
> Sent: den 2 september 2003 20:03
> To: [EMAIL PROTECTED]
> Subject: [DQSD-Devel] New Feature - user definable startup procedure
> 
> 
> Hi everyone, 
> 
> The following (really simple)  code implements a user 
> definable startup
> protocol.  This will allow the user to run functions at DQSD startup.
> 
> Would one of you administrators mind adding this to the source if the
> group deems it worthy?  I apologize again for no longer having any CVS
> tools set up!
> 
> - Neel
> 
> P.S.  Be careful of word wrapping below.  It may screw up the 
> code.  If
> you need an attachment let me know and again, my sincerest 
> apologies for
> not having the CVS tools set up.
> 
> /*******************************************************
> *  ADDITION TO preferences.js:
> ********************************************************/
> /* Startup functions
> *  Used to allow for personalized startup routines through the Quick
> Search Deskbar.
> *  TIP:  If you wish to call a function, use the escape character to
> escape parentheses
> *  and quotes:  i.e. in localprefs.js you can state:
> *  str_startup_commands = "FunctionFoo\(\)";
> *  presuming you have defined FunctionFoo() someplace else.
> */
> var str_startup_commands = new String();
> 
> 
> 
> /*******************************************************
> *  ADDITION TO tools.js
> ********************************************************/
> // Function used to allow startup options for DQSD.
> function startup()
> {
>       if (str_startup_commands != "")
>       {
>               eval(str_startup_commands);
>       }
>       return true;
> }
> 
> 
> /*******************************************************
> *  CHANGES TO search.htm - here I added a simple call to the new 
> *  startup function (above) within the existing strt function.
> ********************************************************/
> function strt()
> {
>   if (startupdelay > 0)
>   {
>     document.all.delaymsg.innerText = ' Delaying ' + 
> startupdelay/1000 +
> ' seconds...'
>     document.all.delaymsg.style.display = '';
>     setTimeout( postStartup, startupdelay );
>   }
>   else
>   {
>     postStartup();
>   }
> 
>   if (!clock || clockdelay > 0)
>     showQuickSearch();
> 
>   if (helptime > 0)
>     startbanner(clockdelay);
>   else
>     startclock(clockdelay);
>   
>   //Allow users to define a startup function to enable customized
> startups.
>   if ((typeof startup) == 'function')
>   {
>       startup();
>   }
> }
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> DQSD-Devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dqsd-devel
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to