I am trying to make a web page that edits a list: Name Age ---- --- Sean 32 <delete> Richard 40 <delete> Name: ___ Age: ___ <Add> The question is, how do I pass the list at the top around between invocations of the page, especially in the case where there is no list at all! I can see that I could build a list of records in the form and pass that to the action script (to send back to me again), but I am at a loss as to how to generate an argument consisting of an empty list. And I am also concerned that this is not the best way to do this. (I am using Page Templates BTW). TIA, - rmgw http://www.electricfish.com/hawkfish/ ---------------------------------------------------------------------------- Richard Wesley Electric Fish, Inc. hawkfish@electricfish.com "They have forgotten the simplest of pleasures - that of the child and the unopened box." - Dukat in "Babylon 5: Atonement"
Here's one way to get an empty list if you don't have any other values: <input type="hidden" name="foo:tokens:default" value=""> HTH, Florent Richard Wesley <hawkfish@electricfish.com> wrote:
I am trying to make a web page that edits a list:
Name Age ---- --- Sean 32 <delete> Richard 40 <delete>
Name: ___ Age: ___
<Add>
The question is, how do I pass the list at the top around between invocations of the page, especially in the case where there is no list at all! I can see that I could build a list of records in the form and pass that to the action script (to send back to me again), but I am at a loss as to how to generate an argument consisting of an empty list. And I am also concerned that this is not the best way to do this. -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com
participants (3)
-
Dieter Maurer -
Florent Guillaume -
Richard Wesley