[Seaside] Calling a JQuery enabled component from an anchor callback
John Toohey
jt at parspro.com
Fri Apr 17 19:11:40 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 :-
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.
I want to create this dialog each time a row is clicked, as I need to
populate the form with the current values. Is there an issue injecting
a script like this into a rendered page?
Thanks.
--
-JT
More information about the seaside
mailing list