On Thu, Oct 1, 2009 at 12:17 PM, Lukas Renggli <renggli@gmail.com> wrote:
>> The point is that the light-box does not use Javascript (AJAX) to get
>> it displayed, so it will generate the HTML either way. JavaScript is
>> 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,
> that something requires javascript to happen.

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
FireBug.

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
flow and requires you to write and adapt some Javascript code to work
with your page layout.


ah, i understand.
thanks.