[Seaside] TableSelectable
Cédrick Béler
cbeler at enit.fr
Fri Oct 20 08:17:43 UTC 2006
Hi
maybe with submitOnClick...
or onClick: 'submit()'...
but it's not directly in the callback and it does a full refresh of the
page.
Otherwise you could use scriptaculous updater's by adding having
something like:
html tableRow...
onClick: (html updater
id:'fullTable'
callback: [:rend | self selectRow: index. self renderTableOn: rend])
with:[...]
or maybe...
rowId := html nextId.
html tableRow...
id: rowId;
onClick: (html updater
id: rowId;
callback: [:rend | self selectRow: index. self renderRow: aRow On: rend])
with:[...]
Never tried with tables though...
See you
Cédrick
> Hi all,
>
> I subclassed WACanvasTableReport and added some stuff. My table works
> now except that I need to reload the page after the onClickCallback of
> the table row
>
> html tableRow style: 'background-color: ', (self colorForRowNumber:
> index);
>
> onMouseOver: 'javascript:highlightTableRow(this, "' , self
> highlightColor , '");';
>
> onClickCallback: [self selectRow: index.];
>
> with: [columns
>
> do: [:ea | self
>
> renderColumn: ea
>
> row: row
>
> on: html]]
>
> Is there a way to reload the page from a callback? I know I can do it
> on liveCallback but tableRow’s do not understand liveCallback.
>
> Thanks for your help!
>
> Ron Teitelbaum
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the Seaside
mailing list