Gracefully Degrading Lightbox from Command Column
joel at ardishealth.com
Thu Oct 1 18:45:13 MEST 2009
Ok well I'm not necessarily tied to lightbox, I just thought it would be
cool. I've been playing with something like this instead.
renderCellLinkContent: aFoo on: html
do: [ :each |
onClick: 'confirm(''Are you sure you wish to remove', aFoo
name,'?''); return false';
callback: [ each key value: aFoo ];
with: each value ]
separatedBy: [ html space ]
The callback does the WAComponent confirm:.
So this degrades well, my only problem is, I don't know how to get the
result of the js dialog it and call removeFoo: aFoo if it's true.
On Thu, Oct 1, 2009 at 12:17 PM, Lukas Renggli <renggli at gmail.com> wrote:
> >> only used afterwards to get the dialog centered in the middle of the
> >> page and have the background dimmed. I haven't seen a lightbox yet
> >> that can do this cross-browser only using CSS.
> > How would a lightbox get displayed without using js?
> > You have to do something to get the lightbox to display,
> No. #lightbox: is like #call:. It does a full refresh to the server
> and generates a completely new page with the background and lightbox
> HTML. The only difference between #call: and #lightbox: is that call
> does not render the parent component, #lightbox: does to make it shine
> through using some CSS effects. You can easily observe that in
> Now of course there are nicer ways to do a lightbox, e.g. by loading
> the dialog using an AJAX call. However this does not work as part of a
> with your page layout.
> Lukas Renggli
> Magritte, Pier and Related Tools ...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the smallwiki