| 
	
 | 
 Posted by Neredbojias on 06/15/06 03:43 
To further the education of mankind, "scott_us" <sma_us@yahoo.com>  
vouchsafed: 
 
>> > I have a html web page with a table and sorting function in it. When 
>> > users click one of the column header of the table, it will sort the 
>> > table. Also there are some links in the table. People can click the 
>> > links to go to a new page in the same window. The problem is that the 
>> > window will never come back to the sorted status after a user hit the 
>> > back button of the browser. It come back to a default status. That is, 
>> > a unsorted table in my case. 
>> > I would like to know if there is any solution? thanks. 
>> 
>> Yes, probably several.  How are you sorting in the first place?  If 
>> javascript, you can attach a hash string to the url.  I've done this 
>> myself. 
 
> Nerdboijas, 
> Yes, I used a javascript to sort in the table. Please tell me more or 
> give me some links to read. Thanks. 
> Scott 
 
I ided the items sorted, read and prepped them, then did a location.replace  
with the sorted order as a hash.  The url looked something like this: 
 
www.example.com#a06a14a02a01a09.... 
 
When the page first loads, it has to look for this hash-list and sort if it  
exists.  It's a rather complicated procedure but will work. 
 
--  
Neredbojias 
Infinity has its limits.
 
  
Navigation:
[Reply to this message] 
 |