[Seaside] lightbox and please wait dialog

Boris Popov boris at deepcovelabs.com
Tue Nov 4 15:40:07 UTC 2008

You could use javascript to launch 'please wait' on the originator page followed by form post, the lightbox will then naturally disappear once callback completes and new page is rendered.


-Boris (via BlackBerry)

----- Original Message -----
From: seaside-bounces at lists.squeakfoundation.org <seaside-bounces at lists.squeakfoundation.org>
To: 'Seaside - general discussion' <seaside at lists.squeakfoundation.org>
Sent: Tue Nov 04 07:30:24 2008
Subject: RE: [Seaside] lightbox and please wait dialog

Hi Marco,

today I've finished solving exactly that.
I've used a periodical updater on a component which changes its state while
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

Tip: you may be tempted to but manage yourself to don't use forks in callbacks


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20081104/e1427eaa/attachment.htm

More information about the seaside mailing list