/    Sign up×
Community /Pin to ProfileBookmark

sorttable.js — doesnt work in NS 7

Hi all, i know my people are behind the technology…this js works in IE 6+ and NS 7.2 but not 7…. Please let me know what is not working? I tried to debug but nothing came up … your help is appreciated…
I have attached the sample table(“sampleTable.txt “) and js file (“sorttable.txt “)…

to post a comment
JavaScript

9 Comments(s)

Copy linkTweet thisAlerts:
@voidvectorJan 14.2009 — Early Gecko doesn't support node.getAttribute. Use "node.sorttable_customkey" to access your custom attribute.

You need to work-in the cross-broswer compatibility, since IE doesn't seem to support "node.sorttable_customkey" for custom tags.

You can type "javascript:" in the URL bar to bring up the JavaScript console.
Copy linkTweet thisAlerts:
@emmim44authorJan 14.2009 — how about node.textContent, node.text, node.innerText? Are they supported in NS 7
Copy linkTweet thisAlerts:
@voidvectorJan 14.2009 — .textContent is not supported until later version.

.text and .innerText are IE-only.

But I don't think it matters in your code, since you use .nodeType/.nodeValue fallback.
Copy linkTweet thisAlerts:
@emmim44authorJan 15.2009 — Yes you are right... I removed the 'node.getAttribute' from js file , it does work on NS 7 but... when you click the column to sort it shows a " ? " after column name...why??
Copy linkTweet thisAlerts:
@voidvectorJan 16.2009 — That should be the symbol for upward triangle and downward triangle (indicating descending/ascending in your application).

Your the host OS for Netscape 7 probably have an older versions of the fonts, which don't support those symbols.
Copy linkTweet thisAlerts:
@emmim44authorJan 16.2009 — Yes You are right! is there equilavant of a upward triangle and downward triangle symbols for NS 7
Copy linkTweet thisAlerts:
@voidvectorJan 16.2009 — It's not Netscape 7, it is your OS.

It shows fine on my Netscape 7, installed on Windows 2000.
Copy linkTweet thisAlerts:
@emmim44authorJan 16.2009 — Are you sure it is not 7.2 because on 7.2 it looks ok as well but not 7...Thank very much,
Copy linkTweet thisAlerts:
@voidvectorJan 17.2009 — The font you specified probably does not have the triangle symbols. Try to add a fallback font to the font-family in the style sheet.
×

Success!

Help @emmim44 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.18,
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,
)...