W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2007

[whatwg] Prefilling repetitions

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Tue, 13 Mar 2007 13:43:53 -0400
Message-ID: <45F6E2D9.7020305@metalab.unc.edu>
In WF2 I can prefill a select list with external data pointed to by a 
data attribute like so:

<form>
  <label>Choose the species:
     <select name="species" data='examples/species.xhtml'></select>
   </label>
  <label><input type="submit" value="Send data" /></label></p>
</form>

However it strikes me as funny that I can't prefill a repeating form. e.g.

<div id="observation" repeat="template">
   <label>Species:
     <input type="text" name="species[observation].name"
            data="http://www.example.com/values.html"/>
   </label>
</div>

At least I don't think I can. This seems so obviously useful I can well 
believe I might have overlooked the relevant section of the spec. if so, 
could someone please point me to it? If not, would anyone else like 
something like this?

-- 
?Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
Received on Tuesday, 13 March 2007 10:43:53 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:53 UTC