[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

jQuery table sorter plug in issue

Asked by roger_v in JavaScript, Miscellaneous Web Development

Tags: jQuery

I'm using jQuery table sorter plugin to sort html tables. It works o.k. (except sometimes it gives 'type is null' errors in IE8) but I'm unable to add sorting arrows. The arrows appear once the user clicks on the header but I'm trying to add arrows that are like so:  <  and  >  before the user clicks on the sortable table header so that they know that that column is sortable. For example, for a column with header like this:  SKU Name    I'd like it to be   < SKU Name >  before the user clicks on it to sort asc or desc. Once the user clicks on it the up and down arrows show up (from a link to images of up and down arrows). I tried adding the lesser than and greater than arrows but they don't show up! :(  Any suggestions?

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
//the css that exists now
 
<style type="text/css">
th.header { 
   
   	cursor:auto;
    font-weight: bold; 
    background-repeat: no-repeat; 
    background-color:#FAECA0;	      	
    background-position: center left; 
    padding-left: 20px; 
    border-right: 1px solid #dad9c7; 
    margin-left: -1px; 
	
}
 
th.headerSortUp {
	background-image:url(../images/arrow_up.gif);
	background-color:#EDCC0E;}
	
th.headerSortDown {
	background-image:url(../images/arrow_down.gif);
	background-color:#EDCC0E;}
</style>
 
I tried adding background-image:url(../images/arrow_lt.gif); and background-image:url(../images/arrow_gt.gif); in the first block of css code but they don't show up.
[+][-]10/10/09 12:05 AM, ID: 25541129Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/12/09 06:49 AM, ID: 25551174Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/12/09 09:15 AM, ID: 25552471Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/12/09 01:37 PM, ID: 25554788Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/15/09 07:11 AM, ID: 25580672Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625