Results 1 to 3 of 3
Nov 21, 2007, 03:19 #1
I am using the table sorting script by Frequency Decoder on a particular table in my application. What I want to do is set a cookie to store the details about the column that was sorted so that when a visitor comes back to the same page, the column would be sorted as per the user's previous sort order.
Setting and retrieving values from a cookie is not a problem. Telling the script to sort a column on the onload event of the page is. The code I wrote works in Firefox but not in IE.
I have attached sample code for you to have a look. I would appreciate it if someone could help me out.
Nov 21, 2007, 10:43 #2
- Join Date
- Sep 2005
- 2 Post(s)
- 0 Thread(s)
That should not be in the BODY. That's the whole point of it being unobtrusive. Put it in the HEAD, preferably in the same file as tablesort.js.
Nov 21, 2007, 11:41 #3
I did put it in the head section first and then moved it inside BODY to check if that worked. Both places didn't work