Xymon Mailing List Archive search

Wish: hobbitserver find option.

3 messages in this thread

list Peter Welter · Mon, 23 Jan 2006 12:42:28 +0100 ·
Hello Henrik,

This is a not a request for a major feature, but it would be very
welcome if this could be implemented in a coming version of Hobbit.

I would like to see that, when I choose the find-option from the menu,
the carret moves immedeately to the box where you can enter data. Just
like the way google works when you enter www.google.com. You can start
typing directly; with the current Hobbit-version you have to hit the
TAB-button first.

Thanks in advance,

Peter
list Werner Michels · Mon, 23 Jan 2006 10:42:26 -0200 ·
quoted from Peter Welter
I would like to see that, when I choose the find-option from the menu,
the carret moves immedeately to the box where you can enter data. Just
like the way google works when you enter www.google.com. You can start
typing directly; with the current Hobbit-version you have to hit the
TAB-button first.
Henrik,

	If you allow (i´m still here, but a litle busy these last months),
I already have this suggestion implemented on my running hobbit, so I´ve
token 5 minutes to made a quick check on the files and build the
attached diff file, who should allow the requested "focus()" correctly
be set.
	
	Let me know any problems.

	Reagrds
	Werner

PS: 2 help, on already installed hobbit you could
 - put the diff file in ~server/web
 - run "patch --backup -p0 <findhost_web_form.diff"
 - reload http://<hobit_server>/hobbit-cgi/bb-findhost.sh  and the focus
should move to the test field.
Attachments (1)
list Great Dilla · Mon, 23 Jan 2006 20:57:29 +0800 ·
This feature would require you to edit two files.. see below:

[1] Edit the file $HOBBITHOME/server/web/findhost_form
insert: NAME="findHost"
... in the line <FORM METHOD="GET" ACTION="&REQUEST_URI">
insert: onLoad="focus.host();"
... in the line <INPUT  TYPE="TEXT" NAME="host" VALUE="" MAXLEN
GTH=200 SIZE=70><BR>

[2] Edit the file $HOBBITHOME/server/web/findhost_header
insert: onLoad="document.findHost.host.focus();"
... in the line <BODY  BGCOLOR="&BBBACKGROUND" BACKGROUND="&BBSKIN
/bkg-&BBBACKGROUND.gif" > tag.

And try the find host on the menu.. the cursor is automatically
pointing to the form: "Pattern to look for"

HTH.
quoted from Peter Welter

On 1/23/06, Peter Welter <user-f55666bd0d1e@xymon.invalid> wrote:
Hello Henrik,

This is a not a request for a major feature, but it would be very
welcome if this could be implemented in a coming version of Hobbit.

I would like to see that, when I choose the find-option from the menu,
the carret moves immedeately to the box where you can enter data. Just
like the way google works when you enter www.google.com. You can start
typing directly; with the current Hobbit-version you have to hit the
TAB-button first.

Thanks in advance,

Peter