[Seaside] Dynamically changed lists and forms

Andres Fortier andres at lifia.info.unlp.edu.ar
Mon Oct 6 18:40:14 UTC 2008


Thanks Dave I didn't thought about that one. I think I may go in that 
direction.

Thanks!
Andrés

Dave Bauer escribió:
> On Mon, Oct 6, 2008 at 2:26 PM, Andres Fortier
> <andres at lifia.info.unlp.edu.ar> wrote:
>> Thanks for the quick response Lukas. I thought that maybe I could avoid
>> submitting each value.
> 
> Offhand, you can add the list entries to a hidden variable that will
> be submitted when you submit the form.
> 
> Dave
> 
>> Cheers,
>>           Andrés
>>
>> Lukas Renggli escribió:
>>>>  the function works ok (at least I can see the elemnts being added to the
>>>> list). However when the #addPath message is called as the result of
>>>> submitting the form the collection of points is empty. Could anybody tell
>>>> me
>>>> what am I doing wrong or what am I missing?
>>> This is how HTTP/HTML works, not a restriction of Seaside: A
>>> select-list is only a list of strings (and associated names) in the
>>> web browser. Upon form submission the name of the selected item is
>>> submitted to the server, not the items within the list itself.
>>>
>>> I suggest that you have a look at Scriptaculous (or any other
>>> Javascript framework). They provide built in functionality to push
>>> values to the server and add them to a list on the server.
>>>
>>> Cheers,
>>> Lukas
>>>
>>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
> 
> 
> 


More information about the seaside mailing list