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

John Toohey johnptoohey at gmail.com
Sat Apr 18 14:25:12 UTC 2009


This is the snippet from the table row render that has the anchor :-

	html tableRow id: id; with:
		[html
			tableData: [html anchor callback: [html render: self
testComponent]; with: 'Edit'];
			tableData: aJulietUser role;


On Sat, Apr 18, 2009 at 05:24, Lukas Renggli <renggli at gmail.com> wrote:
>> 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
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



-- 
-JT


More information about the seaside mailing list