<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Re: [Seaside] lightbox and please wait dialog</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

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

</BODY>
</HTML>