sorting problems when using 'title' attribute in links
sorting problems when using 'title' attribute in links
karmapolitic
Posts: 3Questions: 0Answers: 0
hey there!
- using the latest release of datatables
- table is generated with php/mysql
- the problem column is all links
- sorts properly before i add a 'title' attribute
- sorting acts with no rhyme nor reason as far as i can tell once i add the title (doesn't seem to be sorting alphabetically by the title or anything of the sort - just really random sorting it seems). i'd like it to sort based only on the visible text in between the and tags without regard to the text in the link title.
right now the only control i'm executing over the columns is whether they are sortable or not. is there a simple fix (like defining an explicit sType) that will solve this issue?
- using the latest release of datatables
- table is generated with php/mysql
- the problem column is all links
- sorts properly before i add a 'title' attribute
- sorting acts with no rhyme nor reason as far as i can tell once i add the title (doesn't seem to be sorting alphabetically by the title or anything of the sort - just really random sorting it seems). i'd like it to sort based only on the visible text in between the and tags without regard to the text in the link title.
right now the only control i'm executing over the columns is whether they are sortable or not. is there a simple fix (like defining an explicit sType) that will solve this issue?
This discussion has been closed.
Replies
LF00031
Camera
IUYTREWQ
LF00030
Book
asfdasdf
LF00026
Other
Water bottle
LF00027
Other
Water bottle
LF00023
Book
ugly heavy book
LF00022
iPod/MP3 Player
apple ipod 160gb black
the table just displays the link text (a short description) whereas the title attribute contains a detailed description of the property that is displayed in a jquery tooltip popup upon rollover. the link itself points to a 'view item' page where it displays all of the associated data from the sql record.