[Seaside] Form extended with ajax and callbacks
Norbert Hartl
norbert at hartl.name
Fri Dec 2 16:45:45 UTC 2011
Am 02.12.2011 um 17:25 schrieb Paul DeBruicker:
> On 11-12-02 07:57 AM, Norbert Hartl wrote:
>> I'm asking myself if I do something wrong or if it is not supported in seaside. I have a form that is rendered the first time. The form includes a select that when being changed triggers an ajax call and this inserts a new input field inside the form. Should it work that I get a value from the input field when the form is being submitted?
>>
>> thanks,
>>
>> Norbert_______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> I would have guessed that would work. Is it a textInput or something that requires you to serializeWithHidden? Does your input have a 'name' property after its inserted? Does the input's id or name conflict with anything else in the page/form? Can you see in Firebug if the parameter is sent back to Seaside? Why not just show/hide the textInput? Are you submitting the form with ajax or in the traditional way?
Paul,
it is a text input field . It has name property and it is transferred to the server. I cannot see anything the input field conflicts with. I don't use toggle because I don't know upfront what has to be inserted. The select field selects a class that is transferred to the server. There a new instance is created and it is returned as magritte component. So I need the extra roundtrip.
Norbert
More information about the seaside
mailing list