I assume that&#39;s the pattern from JQDialogFunctionalTest&gt;&gt;renderLightboxOn: ... but I&#39;d like to do is to effectively defer the building of the scirpt: () code until the &#39;onClick: (html jQuery id: id) dialog open;&#39; is triggered.  I don&#39;t have enough context until then (domain state would determine the modal dialog component). <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.  I&#39;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&#39;m missing something really obvious),</div><div>Bob   <br><br><div class="gmail_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="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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>    script: (html jQuery dialog new) modal: true;<br>    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" target="_blank">bobn@rogers.com</a><br>
To: <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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... </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... </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: &#39;Testing&#39;.</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: </div><div>which allows me to build the prompt string within the callback, </div><div>but I can find no obvious jQuery equivalent.   </div>

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

<div>and I&#39;d rather not code my own since it would probably be a redudent exercise. </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. </div>

<div><br></div><div>Thanks for any help,</div><div>Bob</div><div><br></div>
                                               <br></div></div><div class="hm"><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>