[Seaside] lightbox and please wait dialog
ssastre at seaswork.com
Tue Nov 4 16:34:53 UTC 2008
One way is the one Boris described.
Other could be with some result feedback and a "continue" kind of button.
closing to an observed #click event on an anchor or somethig. This last one is
the more appealing to watch because you can make the dialog to collapse
elegantly instead of just instantly disapearing.
I use both lasts aproaches. Its convenience is dictated by usability.
> -----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:44
> Para: Seaside - general discussion
> Asunto: Re: [Seaside] lightbox and please wait dialog
> Thanks Sebastian,
> how do you make the component disappears automatically when
> the state
> is "done"?
> 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
> > 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
> >> 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
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside