<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>I'm not at all familiar with SmallFaces, but maybe try something along these lines:<br><br>onSuccess: (<br> updateComponentsWithJavaScript onComplete: (displayReady).<br>).<br><br>RS<br><br>> Date: Wed, 9 Dec 2009 20:21:52 -0800<br>> From: timothy@churchmilitant.org<br>> To: seaside@lists.squeakfoundation.org<br>> Subject: Re: [Seaside] Implement "please wait" message using smallfaces.<br>> <br>> Ok now I know why it's doing it. I have a collection of panes I need to <br>> be refreshed (when: send: to: refresh:) and the message will be <br>> refreshed during the processing of the collection. What I need it to do is:<br>> <br>> 1. update the message to working status<br>> 2. on success refresh the remaining panes<br>> 3. when the panes are all refreshed (including the hit list)<br>> 4. update the message to a ready status.<br>> <br>> Hmmm can this be done in SmallFaces using (when:send:to:refresh:)? Or <br>> do I just evaluate javascript (when: evaluateJavascript:)?<br>> <br>> Timothy James Ziebart wrote:<br>> > Thanks Robert I will give it a try - never used it before.<br>> ><br>> > Robert Sirois wrote:<br>> >> Are you able to use an #onSuccess: type message is your system? (Ajax <br>> >> request.)<br>> >><br>> >> RS<br>> >><br>> >> > Date: Wed, 9 Dec 2009 16:19:47 -0800<br>> >> > From: timothy@churchmilitant.org<br>> >> > To: seaside@lists.squeakfoundation.org<br>> >> > Subject: [Seaside] Implement "please wait" message using smallfaces.<br>> >> ><br>> >> > Hi all. I've built a fairly complex interface using SmallFaces<br>> >> > components.<br>> >> ><br>> >> > 9 listboxes, 4 buttons, 3 labels, 1 panel and two custom components<br>> >> > (subclasses of SFAbstractWidget - search results and a map). Selecting<br>> >> > an option in one listbox results in a chain of events being executed -<br>> >> > the contents of two other listboxes are updated, a search conducted <br>> >> on a<br>> >> > remote server and the results being displayed including label and <br>> >> button<br>> >> > statuses being updated. There are no submit or search buttons -<br>> >> > selecting a listbox option starts the process (I will be adding the<br>> >> > functionality to include the search button should the user not have<br>> >> > javascript on). There are no forms. It works well - that is not the<br>> >> > problem.<br>> >> ><br>> >> > The challenge I have is due to the delay in getting data from the <br>> >> remote<br>> >> > server I would like to implement a "please wait" message while the <br>> >> data<br>> >> > is being retrieved. I am not having any success getting it to work.<br>> >> ><br>> >> > I tried a SUPeriodical object reading a variable holding updated <br>> >> message<br>> >> > text but, it stops while the data is being retrieved and will display<br>> >> > the content only when the remaining components are updated -- too <br>> >> late.<br>> >> > Is it possible to have an element update the content and display the<br>> >> > results before the remainder of the requests are processed? What would<br>> >> > that look like? Does SUEvaluater/updater update content and render<br>> >> > before processing the next script?<br>> >> ><br>> >> > I was looking at Ramon Leon's Ajax Polling and Concurrency articles<br>> >> > thinking I may have to head in that direction. Is that the direction I<br>> >> > need to head in? Any suggestions would be helpful.<br>> >> ><br>> >> > As you can tell I am confused about the sequence when a element on a<br>> >> > page has it's content updated and when the browser displays the <br>> >> results<br>> >> > using ajax.<br>> >> ><br>> >> > Thank you for the help.<br>> >> ><br>> >> > Tim<br>> >> ><br>> >> ><br>> >> > _______________________________________________<br>> >> > seaside mailing list<br>> >> > seaside@lists.squeakfoundation.org<br>> >> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> >><br>> >> ------------------------------------------------------------------------<br>> >> Windows LiveT Hotmail is faster and more secure than ever. Learn <br>> >> more. <br>> >> <http://www.microsoft.com/windows/windowslive/hotmail_bl1/hotmail_bl1.aspx?ocid=PID23879::T:WLMTAGL:ON:WL:en-ww:WM_IMHM_1:092009> <br>> >><br>> >> ------------------------------------------------------------------------<br>> >><br>> >> _______________________________________________<br>> >> seaside mailing list<br>> >> seaside@lists.squeakfoundation.org<br>> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> >> <br>> ><br>> > _______________________________________________<br>> > seaside mailing list<br>> > seaside@lists.squeakfoundation.org<br>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> ><br>> <br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                            <br /><hr />Chat with Messenger straight from your Hotmail inbox. <a href='http://www.microsoft.com/windows/windowslive/hotmail_bl1/hotmail_bl1.aspx?ocid=PID23879::T:WLMTAGL:ON:WL:en-ww:WM_IMHM_4:092009' target='_new'>Check it out</a></body>
</html>