[Greasemonkey] Split a table's TRs into two?
JimD
Jim at keeliegirl.dyndns.org
Wed May 3 23:43:57 EDT 2006
bounce at johnhorner.nu wrote:
> I have to use an interface with lots of sideways scrolling. This is
> because the content's in a table and the table has lots of long,
> unsplittable content in the cells.
>
> Is it going to be feasible in GM to rewrite the table entirely so that
> every entry is on two rows? In other words, ignoring header problems, is
> it feasible to take this table
>
> |foo1|bar1|baz1|bax1|
> |foo2|bar2|baz2|bax2|
>
> and change it to:
>
> |foo1|bar1|
> |baz1|bax1|
> |foo2|bar2|
> |baz2|bax2|
>
> using GM? Any pointers, script examples? TIA.
>
> BTW, there are an even number of cells in each row.
>
Have you ever used the javascript lib sorttable? It makes a table
sortable without a server round-trip. It actually re-writes all the
rows of the table. It could be a good starting point for you.
http://kryogenix.org/code/browser/sorttable/
Jim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
There's no place like 127.0.0.1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
JimD
Central FL, USA, Earth, Sol
More information about the Greasemonkey
mailing list