/    Sign up×
Community /Pin to ProfileBookmark

Table Sort Script–won’t work in all tables

So I snagged that nifty Data Table sorter that Tom is using, plugged it into one table, and it worked beautifully. Now, I have another table, and it’s stalling out on me. It is adding lines to the end of the table and doesn’t seem to be sorting at all. I’m getting an error (“Object required”) after the script runs.

The only fundamental differences between the two tables is that the one that isn’t getting sorted does NOT have a date column, or any other numeric data, and is considerably longer than the one that works.

Any ideas?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJul 22.2003 — Debugging:

first comment out the one that works and see if then the second one works.

If it works then there is problem in the code that does not take in to account multiple tables.

And if it still does not work then there is a reference problem make sure that the second table has the same reference id's names as the first onw has..
Copy linkTweet thisAlerts:
@galadrielauthorJul 22.2003 — The tables are in separate documents. I have inserted the script into the head of each page, and the appropriate <a href>s on the column headings. I have checked the reference IDs...they match up.
Copy linkTweet thisAlerts:
@galadrielauthorJul 22.2003 — Apparently, the problem is being caused by the length of the table. If there are more than 37 rows (not columns) of data, I get the error. Can the script be tweaked to accommodate the long table? This table has over 100 rows of data, arranged in 6 columns.
Copy linkTweet thisAlerts:
@Khalid_AliJul 22.2003 — its impossible to say because I have no idea what code you are using...
×

Success!

Help @galadriel spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...