auto-submit form TABLE

(1)
Often browser displays information from database.
Typical operation is viewing of some database's table:
smaller quantity of rows is shown in browser,
bigger quantity of rows was not still inquired from database.

Let's enter special form, looking as TABLE with knob and slider on right side.
It also would be very comfortable and also economize time and torment
(especially for un-skilled user).
  <table    name="A" action="site.com/dir/script.cgi"  portion="50"></table>

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

Server answers to browser by piece of xml-text:
values of attributes will be displayed in browser as content of cells
(if beginning of value is "http://", then browser inquire and display picture);
attributes (and tag) have arbitrary names.
  <a a1="v1_1"  a2="v1_2"  a3="v1_3" >
  <a a1="v2_1"  a2="v2_2"  a3="v2_3" >
  ...
  <a a1="v50_1" a2="v50_2" a3="v50_3">

If user enter new row and fill all its cells,
and wait time, equal double-click,
then browser immediately sends mentioned row
"name=A&cmd=insert&data=<a a1="v1" a2="v2" a3="v3">",
gets and displayes other 50 rows.

If user delete row,
then browser immediately sends mentioned row
"name=A&cmd=delete&data=<a a1="v1" a2="v2" a3="v3">",
gets and displayes other 50 rows.

If user change cell of row,
and wait time, equal double-click,
then browser immediately sends mentioned row
"name=A&cmd=update&data=<a a1="v1" a2="v2" a3="v3">",
gets and displayes other 50 rows.

If user press "arrow-down" in last displayed row,
then browser immediately sends mentioned row
"name=A&cmd=down&data=<a a1="v1" a2="v2" a3="v3">",
gets and displayes next 50 rows.

If user press "arrow-up" in first displayed row,
then browser immediately sends mentioned row
"name=A&cmd=up&data=<a a1="v1" a2="v2" a3="v3">",
gets and displayes previous 50 rows.

(2)
The following construction make auto-substitution
  <table    name="A" action="site.com/dir/script.cgi"  portion="50">
    <select name="B" action="site.com/dir/script2.cgi" portion="10">a2</select>
  </table>
Meaning of @value of OPTION (e.g. "subs1") will be meaning of @a2 at sending to server,
content of OPTION (e.g. "word1") will be displayed in table cell.

This SELECT is also auto-form, which gets from server
  <option value="subs1" >word1 <option>
  <option value="subs2" >word2 <option>
  ...
  <option value="subs10">word10<option>

  

Dmitry Turin
HTML6     (6.1.2)  http://html60.chat.ru
SQL4      (4.1.2)  http://sql40.chat.ru
Unicode2  (2.0.0)  http://unicode2.chat.ru
Computer2 (2.0.3)  http://computer20.chat.ru

Received on Monday, 16 July 2007 13:16:42 UTC