[Seaside] Problem with adding event handler with jQuery
John Toohey
jt at parspro.com
Sat May 15 15:33:01 UTC 2010
Hi,
I have an event handler bound to a table via this code :-
renderContentOn: html
html div class: self cssClass; with:[
html table
id: self tableID;
script: (html jQuery this
live: 'julietrefresh' do: (html jQuery this load html: [:h |
self renderTable: h];
onComplete: (html jQuery this call: self refreshScript)
));
with:[
self renderTable: html
]
].
The 'julietrefresh' is called via a Comet handler. All is well, unless
the table is empty, and in this case the event is not bound. #live:do:
and #bind:do work the same. If I have at least on table row, then
everything works as expected. If I use the FireBug Event plug-in, and
use #bind:do: I can see that the event is not registered, unless the
table has data.
Is this a know issue, or am I doing something wrong here?
--
-JT
More information about the seaside
mailing list