[Seaside] Re: Form, serialize:, answer: and callback:

Johan Brichau johan at inceptive.be
Wed Jun 12 05:35:50 UTC 2013


answer: does not work in an Ajax callback.

Is there a reason to use Ajax when you want to do a full page refresh anyway?
I.e.: you could submit the form using a normal callback.

Johan

On 12 Jun 2013, at 00:51, Dav <lasmiste at gmail.com> wrote:

> Blah, the forum stripped away my code.
> So that's the code:
> 
> html form:[
> ...
> html anchor onClick:(html jQuery ajax serializeForm callback: [self answer:
> itsVisit ]);
> text:'ok'.
> ...
> ]
> 
> 
> Dav wrote
>> Hi,
>> I've a form I have to submit via ajax. The form is in a component called
>> via call:, when the form is submitted I want to return to the previous
>> component.
>> 
>> Here's my code
> 
>> 
>> Form is submitted, but answer: does not return to the previous component
>> even if it is executed (I know because I put a halt in the callback
>> block).
>> Can anyone explain why and how to solve it?
>> 
>> Thanks
>> Dave
> 
> 
> 
> 
> 
> --
> View this message in context: http://forum.world.st/Form-serialize-answer-and-callback-tp4692893p4692894.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list