[Seaside] Calling a JQuery enabled component from an anchor callback

Lukas Renggli renggli at gmail.com
Sat Apr 18 09:24:46 UTC 2009


> I have a table that includes a html anchor with a callback in the
> first column. The callback calls #render: self TestComponent when
> clicked, and the #renderContentOn method of the component called is :-

Could you post the code that renders the anchor and the callback?

> renderContentOn: html
>        html div id: #JPT;
>                 script: (html jQuery new dialog
>                        title: 'Test';
>                        autoOpen: true;
>                        addButton: 'Close' do: html jQuery new dialog close);
>                with: [html text: 'Hello World'].
>                self halt
>
> I get a MessageNotUnderstood: UndefinedObject>>addLoadScript: in the
> browser when its called. I am trying to have a JQuery dialog popup and
> allow me to edit the contents of the tablerow, but I am not sure what
> I am doing wrong here.

That code looks fine and works well, as far as I can tell.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list