<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>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><br><hr>Date: Mon, 1 Mar 2010 10:31:43 -0500<br>Subject: Re: [Seaside] jQuery lightbox prompt<br>From: bobn@rogers.com<br>To: seaside@lists.squeakfoundation.org<br><br>Guess I'm stuck on the &quot;don't have to create the dialog until you want to&quot;. &nbsp;<div><br><div>I can always create a component as needed and #call: it from within a #callback: block.</div><div>I'd just like to swap #call: with #lightbox: in some cases. &nbsp;With SULightbox that's easy enough to do.</div>
<div>But the jQuery example uses 'html submitButton&nbsp;onClick: (html jQuery id: id) dialog open'&nbsp;</div><div>so the dialog being opened needs to already be created in order to provide the id.&nbsp;</div><div>(I'm looking at&nbsp;JQDialogFunctionalTest&gt;&gt;renderLightboxOn:)</div>
<div><br></div><div>Is there a jQuery example that parallels the&nbsp;SULightboxTest&gt;&gt;renderContentOn: example?</div><div>(where #inform: is&nbsp;overridden&nbsp;to render as a lightbox).</div><div><br></div><div>Or, to put it another way, is there a way to use lightbox behaviour for a component call with jQuery?</div>
<div><br></div><div>Thanks again,</div><div>Bob</div><div><br><div class="ecxgmail_quote">On Mon, Mar 1, 2010 at 9:09 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 #ccc solid;padding-left:1ex">



<div>
You don't have to create the dialog until you want to. Are you talking opening the dialog for the first time, or is this a persistent dialog that you want to update?<br><br>RS<br><br><hr>Date: Mon, 1 Mar 2010 08:27:11 -0500<br>
Subject: Re: [Seaside] jQuery lightbox prompt<div><div></div><div class=h5><br>From: <a href="mailto:bobn@rogers.com">bobn@rogers.com</a><br>To: <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<br>I assume that's the pattern from&nbsp;JQDialogFunctionalTest&gt;&gt;renderLightboxOn: ... but I'd like to do is to effectively defer the building of the scirpt: () code until the 'onClick: (html jQuery id: id) dialog open;' is triggered. &nbsp;I don't have enough context until then (domain state would determine the modal dialog component).&nbsp;<div>

<br></div><div>The jQuery lightbox example, as I understand it, sets up the lightbox component before the #onClick: script, since the script needs the component id. &nbsp;I'd like to create the lightbox component from <i>within </i>a #callback: ... just like the way SULightbox is used.</div>

<div><br></div><div>Thanks again, (and I keep thinking I'm missing something really obvious),</div><div>Bob &nbsp;&nbsp;<br><br><div>On Fri, Feb 26, 2010 at 5:04 PM, Robert Sirois <span dir=ltr>&lt;<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote style="padding-left:1ex">



<div>The way i do it is with a component, like BlahComponent which has something like:<br><br>renderContentOn: html<br><br>html div<br>&nbsp;&nbsp;&nbsp;&nbsp;script: (html jQuery dialog new) modal: true;<br>&nbsp;&nbsp;&nbsp;&nbsp;with: [...whatever...].<br><br>

Sorry, writing this from memory. Anyway, i sort of template like that. Just return that to your page with ajax or whatever.<br><br>RS<br><br><hr>Date: Fri, 26 Feb 2010 13:22:43 -0500<br>From: <a href="mailto:bobn@rogers.com">bobn@rogers.com</a><br>

To: <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>Subject: [Seaside] jQuery lightbox prompt<div><div></div><div><br><br><div>One more question about using a lightbox...&nbsp;</div>

<div><br></div><div>I use a lightbox to present prompts as a nice modal dialog from a callback.</div><div>Is there a jQuery equivlanet?</div><div><br></div><div>A typtical use would be...&nbsp;</div>
<div><br></div><div>MyComponentSubclass&gt;&gt;renderContentOn: hmtl</div><div>&lt;...&gt;</div><div><span style="white-space:pre">        </span>callback: [</div><div><span style="white-space:pre">                </span>string := self somethingFromTheDomain.</div>


<div><span style="white-space:pre">                </span>answer := self prompt: string title: 'Testing'.</div><div><span style="white-space:pre">                </span>self doSomethingWith: answer]</div>
<div>&lt;...&gt;</div><div><br></div><div>...using...</div><div><br></div><div>MyComponent&gt;&gt;prompt: aString title: aTitle</div><div><span style="white-space:pre">        </span>^self lightbox: (MyDialogPrompt prompt: aString title: aTitle</div>


<div><br></div><div><br></div><div>SULightbox works well with WAComponent&gt;&gt;show:onAnswer:delegation:&nbsp;</div><div>which allows me to build the prompt string within the callback,&nbsp;</div><div>but I can find no obvious jQuery equivalent. &nbsp;&nbsp;</div>


<div><br></div><div>The dialog examples, like JQDialogFunctionalTest&gt;&gt;renderLightboxOn:&nbsp;</div><div>build the dialog content during rendering, which is too early.</div><div><br></div><div>I suspect it's a simple answer, but I just can't find it,&nbsp;</div>


<div>and I'd rather not code my own since it would probably be a redudent exercise.&nbsp;</div><div><br></div><div>BTW: I really like the ease with which jQuery can be used in Seaside; very cool.</div><div>Replacing my SULightbox is the last bit I need to move my code entirely to jQuery.&nbsp;</div>


<div><br></div><div>Thanks for any help,</div><div>Bob</div><div><br></div>
                                               <br></div></div><div><hr>Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href="http://clk.atdmt.com/GBL/go/201469229/direct/01/" target="_blank">Sign up 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>                                               <br></div></div><div class=ecxhm><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">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 /><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>