[Seaside] [Q] asynchronous lightbox

Lukas Renggli renggli at gmail.com
Thu Oct 11 13:49:13 UTC 2007

> 1. updating is fill the content to the "already" rendered
> element, so, should I have to draw hidden area(div) for dialog before
> using dialog?

You have to create an empty div on every page:

    <div id="lightbox">

Using the updater you can fill it with something like this:

    <div id="lightbox">
       <div id="overlay"></div>
       <div id="dialog">[ your dialog ]</div>

> 2. I already have some test for drawing transparent black area and dummy
> dialog but I cannot figure out closing or unmmap dialog/overlay. How can I
> do this?

By emptying the div again:

    <div id="lightbox">

> 3. Yes, as you said I cannot find way for call: answer: things. I think I can work
> around this using form in the dialog. Is this best way?

You might want to use an onAnswer: callback.


Lukas Renggli

More information about the seaside mailing list