<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>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: bobn@rogers.com<br>To: seaside@lists.squeakfoundation.org<br>Subject: [Seaside] jQuery lightbox prompt<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 class=ecxApple-tab-span style="white-space:pre">        </span>callback: [</div><div><span class=ecxApple-tab-span style="white-space:pre">                </span>string := self somethingFromTheDomain.</div>
<div><span class=ecxApple-tab-span style="white-space:pre">                </span>answer := self prompt: string title: 'Testing'.</div><div><span class=ecxApple-tab-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 class=ecxApple-tab-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 /><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='_new'>Sign up now.</a></body>
</html>