<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I'm finally at home and checking e-mail... imagine that. If I'm looking at the same method as you ("#lightbox:" on WAComponent), then what is happening is that a new component (an SULightbox) is being called and the page re-rendered. When you click "ok" (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'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>&nbsp;&nbsp;&nbsp; callback: [self call: (ToCDLightbox title: 'a title' content: WACounter new)];<br>&nbsp;&nbsp;&nbsp; with: 'Test lightbox call jQ'.<br><br>where ToCDLightbox looks like:<br><br>renderContentOn: html<br><br>&nbsp;&nbsp;&nbsp; html div<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: self id;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; script: (html jQuery new dialog<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; title: self title;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; autoOpen: true;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; modal: true;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; width: 'auto';<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClose: html jQuery this remove;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addButton: 'Done' do: html jQuery new dialog close<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; html render: self content.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ].<br><br>This works ok for me, and you could expand on it. In another project of mine I'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'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 id="stopSpelling">Date: Fri, 5 Mar 2010 08:04:26 -0500<br>Subject: Re: [Seaside] jQuery lightbox prompt<br>From: bobn@rogers.com<br>To: seaside@lists.squeakfoundation.org<br><br>Thanks for looking into it. &nbsp;<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: ? &nbsp;</div><div><br></div>
<div>Oh well, guess it's time to do some learnin' ... always did want to understand more about javascript and how Seaside generates it. &nbsp;Now I just have to find the time ;-) &nbsp;&nbsp;</div><div><br></div><div>Bob</div><div>
<br><br><div class="ecxgmail_quote">On Mon, Mar 1, 2010 at 10:58 AM, Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); 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 /><hr />Hotmail: Powerful Free email with security by Microsoft. <a href='http://clk.atdmt.com/GBL/go/201469230/direct/01/' target='_new'>Get it now.</a></body>
</html>