In raw jQuery you can use
var $th = $td.closest('table').find('th').eq($td.index());
But, how do I return $th
to seaside so I can then use it as a string for whatever rending I want?
Example.
val do:[:e |
e class = Dictionary ifTrue:[
html tableData
onDoubleClick: (html javascript alert: 'double clicked column');
with:[self renderTargets: e on: html]
]
]
So basically I want the value of:
(((html jQuery this) next: 'td') closest: 'table'; find: 'th'; eq: ((html jQuery this) next: 'td') index; html).
and put it at the end of
...column', thValue);
I don't know javascript, jquery or ajax all that well, outside of seaside.
WWLD? Thanks