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