[Seaside] Re: jQuery lightbox flashes on but doesn't stick around inside a form

Paul DeBruicker pdebruic at gmail.com
Wed Jul 22 16:30:08 UTC 2009


Oops.. fat fingers.

renderContentOn: html
html form: [self renderLightboxOn: html].

I don't understand why wrapping the renderLightboxOn: method in a form
causes the lightbox to briefly display on the screen.  It seems to
happen when other form elements are in the form as well like textInput
or checkboxes etc.

This is Seaside - 2.9a4

Thanks in advance
Paul




On Wed, Jul 22, 2009 at 12:26 PM, Paul DeBruicker<pdebruic at gmail.com> wrote:
> Hi -
>
> This works as expected:
>
> renderContentOn: html
>    self renderLightboxOn: html
>
> renderLightboxOn: html
>        | id |
>        html div
>                id: (id := html nextId);
>                script: (html jQuery new dialog
>                                title: 'Welcome Back!';
>                                html: [ html text: 'Hi' ];
>                                resizable: false;
>                                modal: true).
>        ^ html submitButton
>                onClick: (html jQuery id: id) dialog open;
>                with: 'Hi'
>
>
> why does this only flash the lightbox without showing the contents:
>
> renderContentOnL html
>


More information about the seaside mailing list