[Seaside] jQuery lightbox prompt

Robert Sirois watchlala at hotmail.com
Fri Feb 26 22:04:14 UTC 2010

The way i do it is with a component, like BlahComponent which has something like:

renderContentOn: html

html div
    script: (html jQuery dialog new) modal: true;
    with: [...whatever...].

Sorry, writing this from memory. Anyway, i sort of template like that. Just return that to your page with ajax or whatever.


Date: Fri, 26 Feb 2010 13:22:43 -0500
From: bobn at rogers.com
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] jQuery lightbox prompt

One more question about using a lightbox... 
I use a lightbox to present prompts as a nice modal dialog from a callback.Is there a jQuery equivlanet?
A typtical use would be... 

MyComponentSubclass>>renderContentOn: hmtl<...>	callback: [		string := self somethingFromTheDomain.
		answer := self prompt: string title: 'Testing'.		self doSomethingWith: answer]
MyComponent>>prompt: aString title: aTitle	^self lightbox: (MyDialogPrompt prompt: aString title: aTitle

SULightbox works well with WAComponent>>show:onAnswer:delegation: which allows me to build the prompt string within the callback, but I can find no obvious jQuery equivalent.   

The dialog examples, like JQDialogFunctionalTest>>renderLightboxOn: build the dialog content during rendering, which is too early.
I suspect it's a simple answer, but I just can't find it, 
and I'd rather not code my own since it would probably be a redudent exercise. 
BTW: I really like the ease with which jQuery can be used in Seaside; very cool.Replacing my SULightbox is the last bit I need to move my code entirely to jQuery. 

Thanks for any help,Bob

Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100226/76d4938b/attachment.htm

More information about the seaside mailing list