<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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 id="stopSpelling">Date: Mon, 1 Mar 2010 08:27:11 -0500<br>Subject: Re: [Seaside] jQuery lightbox prompt<br>From: bobn@rogers.com<br>To: seaside@lists.squeakfoundation.org<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 class="ecxgmail_quote">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 class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); 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 class="h5"><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 class="ecxhm"><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/">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">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></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>