WHATWG Web Forms 2.0 Repetition Model Implementation

Weston Ruter has created a cross-browser JavaScript implementation of the WHATWG Web Forms 2.0 Repetition Model after taking to heart the spec that annotates:
The entire model can be emulated purely using JavaScript and the DOM. With such a library, this model could be used and down-level clients could be supported before user agents implemented it ubiquitously. Creating such a library is left as an exercise for the reader.
A simple example is:
HTML:
  1. <tr id="order" repeat="template">
  2. <td><input type="text" name="row[order].product" value=""/></td>
  3. <td><input type="text" name="row[order].quantity" value="1"/></td>
  4. </tr>
Read the spec for more details, such as the add/delete/moveup/movedown features.

WHATWG Web Forms 2.0 Repetition Model Implementation

Weston Ruter has created a cross-browser JavaScript implementation of the WHATWG Web Forms 2.0 Repetition Model after taking to heart the spec that annotates:

The entire model can be emulated purely using JavaScript and the DOM. With such a library, this model could be used and down-level clients could be supported before user agents implemented it ubiquitously. Creating such a library is left as an exercise for the reader.

A simple example is:

HTML:
  1.  
  2.      <tr id="order" repeat="template">
  3.       <td><input type="text" name="row[order].product" value=""/></td>
  4.       <td><input type="text" name="row[order].quantity" value="1"/></td>
  5.      </tr>
  6.  

Read the spec for more details, such as the add/delete/moveup/movedown features.


January 23rd, 2007

Tagged View

Tags Similar

Posts Fresh +

Categories View