MX Dynamic Table Sorter Forum :: using images for ASC and DESC

This thread was displayed: 732 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Iyan
01-29-2005 18:22:20 GMT +2

 

Helo,

suggest images features for ascending and descending, so give an images options in this extensions,

I have modified scripts : MXTablessort_functions.inc.php so my table sort using images, look great :

before customize :

//Get Sort Icon Function
function getSortIcon($rsName,$column){
  $value = getCurrentSort($rsName);
  if ($value == $column) {
    return 'v';
  } elseif ($value == $column.' DESC') {
    return '^';
  }
}

after customzize code :

//Get Sort Icon Function
function getSortIcon($rsName,$column){
  $value = getCurrentSort($rsName);
  if ($value == $column) {
    return '<img src="images/down.jpg">';
  } elseif ($value == $column.' DESC') {
    return '<img src="images/up.jpg">';
  }
}



Back | Reply | Quote | Top
Alexandru Baciu[InterAKT]Adobe Systems Romania staff
01-31-2005 10:13:39 GMT +2

Hi Yanto,

We thank you for the suggestion , indeed it's a nice touch , very useful and with great usability.

Best regards
Alexandru Baciu

Reply | Quote | Top
harrillj
05-02-2005 01:48:03 GMT +2

Hello Yanto,

Would it be rude to see the images you used.  I was just thinking of doing the same thing and thought that someone else must have asked this before, and sure enough, your post was right there on the first page.

Thanks

Reply | Quote | Top
lawrie hill
06-10-2005 14:50:46 GMT +2

Hi,

Probably too late but here are the ones I use

lawrie

Reply | Quote | Top
Yonca Aral
10-11-2005 22:03:12 GMT +2

Anyone know what the code would be to insert images using the asp version?

the current code is:

  Function getSortIcon (rsName, column)
  getSortIcon = ""
  value = getCurrentSort (rsName)
  If value = column Then
   getSortIcon = " v"
  ElseIf value = column & " DESC" Then
   getSortIcon = " ^"
  End If
 End Function

Reply | Quote | Top
Mark Jessop
11-21-2005 20:26:49 GMT +2

 Function getSortIcon (rsName, column)
  getiConUP = "<img src='../Images/up_arrow.jpg'>"
  getiConDown = "<img src='../Images/down_arrow.jpg'>"
  getSortIcon = ""
  value = getCurrentSort (rsName)
  If value = column Then
   getSortIcon = getiConDown
  ElseIf value = column & " DESC" Then
   getSortIcon = getiConUP
  End If
 End Function

----------------------------------------------

'Where getiConUP = up arrow image location

'Where getiConDown = down arrow image location

Reply | Quote | Top
Accumike
08-03-2006 19:01:12 GMT +2

Thanks - this has improved the look of my pages greatly and it only took a few minutes.

Michael

Reply | Quote | Top
MX Dynamic Table Sorter 1.8.0
© Adobe Systems Romania. All rights reserved.