how to sort an existing table in greasemonkey ?
Posted
by
user570512
on Stack Overflow
See other posts from Stack Overflow
or by user570512
Published on 2011-01-10T23:48:15Z
Indexed on
2011/01/10
23:53 UTC
Read the original article
Hit count: 149
i'm writing a greasemonkey user.js for a page with a table in it. (table is 100 rows by 18 columns.) now what i want to do is to make it sortable on column. and also have it run in both chrome and firefox.
all searches for answers sofar resulted in suggestions to use jquery/dojo or something alike.
can i be done without any external code? after all it's just a matter of replacing the row's in a different order, right? or is that a silly thing to say?
the thing is that i'm already using dojo for some query needs but since i want it to run in both firefox and chrome, i just copy paste the whole dojo thing in my script..
also, most of the solutions i found sofar seem to be more for use when building a table. not for altering an existing one.
any help is appreciated.
© Stack Overflow or respective owner