[Seaside] lightbox and please wait dialog

Marco D'Ambros marco.dambros at lu.unisi.ch
Tue Nov 4 15:44:19 UTC 2008


Thanks Sebastian,

how do you make the component disappears automatically when the state  
is "done"?

Cheers
Marco

On Nov 4, 2008, at 4:30 PM, Sebastian Sastre wrote:

> Hi Marco,
>
> today I've finished solving exactly that.
> I've used a periodical updater on a component which changes its  
> state while
> progressing.
> The state of this component dictates which feedback will be rendered  
> to the UI.
> Its nice because you can even set there server side validation  
> result when it
> wont validate. If validates fine some kind of be patience message is  
> displayed
> until state changes to done and it end up with some feedback about  
> process
> complete.
>
> Tip: you may be tempted to but manage yourself to don't use forks in  
> callbacks
>
> Cheers,
>
> Sebastian Sastre
>
>
>> -----Mensaje original-----
>> De: seaside-bounces at lists.squeakfoundation.org
>> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre
>> de Marco D'Ambros
>> Enviado el: Martes, 04 de Noviembre de 2008 13:11
>> Para: Seaside - general discussion
>> Asunto: [Seaside] lightbox and please wait dialog
>>
>> Hi,
>>
>> in a seaside application I am writing, some operations take a long
>> time to complete.
>> For this reason, I want to add a sort of "please wait" dialog to the
>> page which automatically disappears after the operation is performed.
>>
>> I tried something like this:
>>
>> html submitButton
>> 	onClick:
>> 		(html request callback: [self lightbox:
>> (WAFormDialog new
>> addMessage: 'Please wait')]),
>> 		(html request callback: [self rootApplication
>> computeLongOperation]);
>> 	text: ' compute long operation']
>>
>> but it does not work. In particular I have to problems with that:
>> 1 - the lightbox dialog is shown in the page only after the
>> #computeLongOperation completed
>> 2 - I dunno how to make the dialog disappear after the
>> #computeLongOperation is completed.
>>
>> any suggestions will be really appreciated :-)
>>
>> thanks!
>> Marco
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list