W3C home > Mailing lists > Public > public-html@w3.org > April 2007

brainstorm: repeating form controls

From: Dmitry Turin <html60@narod.ru>
Date: Mon, 9 Apr 2007 13:03:39 +0300
Message-ID: <4318508171.20070409130339@narod.ru>
To: public-html@w3.org

Can i initiate any other discussion except about BLOCKQUOTE and video :)

Let's consider how to duplicate html-elements by widget "input-button"
(new tag MULTI is necessary to group elements).
Let's consider example for rows of table:
widget "input-button" with name "unimportant" add one row of table, if you press on it
(new row will appears below identical rows).

<table>
 <tr>
  <th> acceptance date </th>
  <th> sacking date </th>
  <th> organization name </th>
  <th> sacking reason </th>
 </tr>

 <multi name="workplace">
 <tr>
  <td> <input type="text" name="in_date"> </td>
  <td> <input type="text" name="out_date"> </td>
  <td> <input type="text" name="ltd"> </td>
  <td> <input type="text" name="why"> </td>
 </tr>
 </multi>
</table>
<input type="button" name="unimportant" value="Add Row" press="workplace">

(or
<button type="add" press="workplace">Add Row</button>
)

If you embrace several rows of table by rectangle by mouse
and press button "back" of browser,
than browser delete these rows.

If you don't embrace beforehand,
but press button "back" of browser,
than browser delete the lowest (last created) row.

I think, that this way is more easy,
than http://www.whatwg.org/specs/web-forms/current-work/#repeatingFormControls


Besides that, i think, that sending information as xml
(see the following) is better, than in traditional way

<workplace in_date="01.90" out_date="01.91" ltd="AAA" why="aaa">
<workplace in_date="01.92" out_date="01.93" ltd="BBB" why="bbb">
<workplace in_date="01.94" out_date="01.95" ltd="CCC" why="ccc">
<workplace in_date="01.96" out_date="01.97" ltd="DDD" why="ddd">

What are you think about two these ideas ?
Received on Monday, 9 April 2007 10:02:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:42 UTC