Re: Auto position curcor in cachemgr.cgi

From: Peter Wemm <peter@dont-contact.us>
Date: Mon, 10 Mar 1997 15:39:11 +0800

"Andres Kroonmaa" wrote:
> > Could the HTML code that is generated for the initial Cache Manager
> > Interface be modified as below.
> >
> > This simple piece of javascript will automatically position the cursor
> > in the hostname field, so that I no longer have to select it via a
> > mouseclick. This should work for any Netscape 2.02 or better or MSIE 3.0
> > or better (or worse?).
> >
> > 3 things to do:-
> >
> > 1. Add the function within the HEAD tag
> > 2. Add the onLoad attribute to the BODY tag.
> > 3. Give the form a NAME via the NAME attribute in the FORM tag.
>
> Umh, I guess, what you want is to save a bookmark named
> http://your.host/cgi-bin/cachemgr.cgi?your.cache.host:port
> You'll have a cgi form filled with your hostname and right port
> and never need to select a hostname field at all...

Or, if you want to bookmark a password as well:

http://<cgi_server>/cgi-bin/cachemgr.cgi?host=<squid_host>&port=<port>&password=<passwd>

Naturally, don't include the '<' and '>' characters. :-) I have several
of these for our various different servers.

Cheers,
-Peter
Received on Sun Mar 09 1997 - 23:50:07 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:39 MST