special immediate form: SELECT (LOOKER)

Often browser displays information from database.
Typical operation is viewing of values from some COLUMN of any database's table:
smaller quantity of values is shown in browser,
bigger quantity of values was not still inquired from database.

Let's enter a special form (looks like ComboBox).
It also would be very comfortable and also economize time and torment
(especially for un-experienced user).

<select name="A" action="script.cgi" portion="50"></select>

When browser meet this html-element during loading document,
it immediately sends "name=A&&cmd=down",
gets and displayes 50 top values (order of sorting depends of server).

If user make one or several of three operations
(enter new sign, delete sign, replace sign) and wait time, equal double-click,
then browser immediately sends "name=A&&cmd=down&word=XXXXXXX",
gets and displayes other 50 values.

If user press "down-arrow" in last value of list of SELECT,
then browser immediately sends "name=A&&cmd=down&word=XXXXX50"
("XXXXX50" is last value in list),
gets and displayes next 50 values.

If user press "up-arrow" in first value of list of SELECT,
then browser immediately sends "name=A&&cmd=up&word=XXXXXXX",
gets and displayes previous 50 values.


Server answers to browser by piece of html-text with OPTION-elements, i.e.

<option>word1 <option>
<option>word2 <option>
<option>word3 <option>
...
<option>word50<option>


P.S.
I prefer
<looker name="A" action="script.cgi" portion="50">
or any other name for tag instead of
<select name="A" action="script.cgi" portion="50"></select>
to avoid closing tag.

Received on Friday, 13 April 2007 12:36:38 UTC