Robert,<div>I got it working well enough for my needs.  The change I needed was to pass #answer: to the new lightbox component from the #content component.  </div><div>The call / answer sequence works and the original component that called the lightbox gets re-rendered correctly.</div>
<div>Thanks again, </div><div>Bob</div><div><br><div class="gmail_quote">On Fri, Mar 5, 2010 at 11:27 AM, Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
Correct, but you can add whatever functionality you like to the buttons, even an empty callback or somesuch thing.<div style="text-indent:0in !important"><br style="text-indent:0in !important"></div><div style="text-indent:0in !important">
One thing I&#39;ve done from an ajax standpoint is return &quot;html javascript refresh&quot; in a script and the renderer will evaluate that.</div><div style="text-indent:0in !important"><br style="text-indent:0in !important">
</div><div style="text-indent:0in !important">RS<br style="text-indent:0in !important"></div><br><hr>Date: Fri, 5 Mar 2010 11:15:30 -0500<div><div></div><div class="h5"><br>Subject: Re: [Seaside] jQuery lightbox prompt<br>
From: <a href="mailto:bobn@rogers.com" target="_blank">bobn@rogers.com</a><br>To: <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br><br><div>Robert, </div>Thanks, that&#39;s very helpful.  <div>
<br></div><div>A couple of things: the #content component can&#39;t #answer: to return from the call, and the component that issued the call does not get re-rendered after the &#39;html jQuery new dialog close&#39;.  </div>

<div>But it&#39;s cleared up some things for me; I&#39;ll keep working on it.</div><div><br></div><div>Bob<br><div><br></div><div><div>On Fri, Mar 5, 2010 at 9:39 AM, Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com" target="_blank">watchlala@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote style="border-left:1px #ccc solid;padding-left:1ex">



<div>
I&#39;m finally at home and checking e-mail... imagine that. If I&#39;m looking at the same method as you (&quot;#lightbox:&quot; on WAComponent), then what is happening is that a new component (an SULightbox) is being called and the page re-rendered. When you click &quot;ok&quot; (in the example) on the component within the dialog, it is answering true and causes another refresh, and goes away.<br>

<br>Your root component renders the dialog, which renders its content. The components are just changing the way they render, and what it looks like, etc. They are calling that type of behavior delegation.<br><br><br><br>
<br>
You can do something similar to this with jQuery, there&#39;s just no convenience-like method for it.<br><br>For example, on one of my websites I do can do something like this:<br><br>html anchor<br>    callback: [self call: (ToCDLightbox title: &#39;a title&#39; content: WACounter new)];<br>

    with: &#39;Test lightbox call jQ&#39;.<br><br>where ToCDLightbox looks like:<br><br>renderContentOn: html<br><br>    html div<br>        id: self id;<br>        script: (html jQuery new dialog<br>            title: self title;<br>

            autoOpen: true;<br>            modal: true;<br>            width: &#39;auto&#39;;<br>            onClose: html jQuery this remove;<br>            addButton: &#39;Done&#39; do: html jQuery new dialog close<br>
        );<br>
        with: [<br>            <br>            html render: self content.<br>            <br>        ].<br><br>This works ok for me, and you could expand on it. In another project of mine I&#39;m working on a mutable UI type system based on dialogs, so there are quite a few more options on my dialog class.<br>

<br>I&#39;m far from proficient at any of this, so maybe Lukas or someone can point out some of my problems or explain this a little better, but I hope this helps.<br><br>RS<br><br><hr>Date: Fri, 5 Mar 2010 08:04:26 -0500<div>

<br>Subject: Re: [Seaside] jQuery lightbox prompt<br>From: <a href="mailto:bobn@rogers.com" target="_blank">bobn@rogers.com</a><br>To: <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>

<br></div><div><div></div><div>Thanks for looking into it.  <div><br></div><div>So, if I understand things correctly, there is no equivalent to SULightobx in the Seaside jQuery code; no simple way to replace a #call: with #lightbox: ?  </div>

<div><br></div>
<div>Oh well, guess it&#39;s time to do some learnin&#39; ... always did want to understand more about javascript and how Seaside generates it.  Now I just have to find the time ;-)   </div><div><br></div><div>Bob</div><div>


<br><br><div>On Mon, Mar 1, 2010 at 10:58 AM, Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com" target="_blank">watchlala@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="padding-left:1ex">





<div>Im sorry im not very familiar with Scriptaculous. Ive been using a lot of ajax stuff to manipulate elements and return new information to the page without having to call and reload.<br><br>It can be a pain keeping track of state, but if what youre doing is purely informational, then its not as big a deal.<br>


<br>Sorry i cant be of more help.<br><br>RS<br>&lt;...&gt;</div></blockquote></div></div>                                               <br></div></div><div><hr>Hotmail: Powerful Free email with security by Microsoft. <a href="http://clk.atdmt.com/GBL/go/201469230/direct/01/" target="_blank">Get it now.</a></div>

</div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div></div>                                               <br></div></div><div class="hm"><hr>Hotmail: Free, trusted and rich email service. <a href="http://clk.atdmt.com/GBL/go/201469228/direct/01/" target="_blank">Get it now.</a></div>
</div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div>