Chaining "modal" components

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Chaining "modal" components

Joseph Blatter
Hello all. I'm a new user of Seaside, so this is my
first message to the list.

My application uses some kind of chained editors, this
mean, there's a form with options that would bring up
another "window" to edit its values when clicked. This
"window" is what I've seen it's called a component in
the framework. I'd like this to be modal.

I've seen also in the Scriptaculous demo, clicking the
View Source link there's a kind of stuff like I want
(a CHB appears using CSS's z-index) and the links
behind are disabled. This type of "modal" component
looks what I've been looking for. I don't know if
there's a better way to do this.

So my question is: Should I subclass SULightbox (the
class that implements that CHB) or there's another
way? It would be too hard if I want to chain two or
more "modal" components?

Cheers


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/ 
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Chaining "modal" components

Lukas Renggli
> I've seen also in the Scriptaculous demo, clicking the
> View Source link there's a kind of stuff like I want
> (a CHB appears using CSS's z-index) and the links
> behind are disabled. This type of "modal" component
> looks what I've been looking for. I don't know if
> there's a better way to do this.

The lightbox is just a visual enhancement to the good old #call:
method. To start with I would just use #call: that replaces the
receiver with the argument, in other words you have your modal dialog.
#call: can also be nested, whereas this probably doesn't work well
with the lightbox. Use #answer: to close the modal dialog (this is the
same for #call: and #lightbox:).

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside