wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes table columns not sorted by Tablekit after AJAX call and <div> is added Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "table columns not sorted by Tablekit after AJAX call and <div> is added" Watch "table columns not sorted by Tablekit after AJAX call and <div> is added" New topic
Author

table columns not sorted by Tablekit after AJAX call and <div> is added

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 249
I use the Tablekit library and Prototype javascript framework on firefox, chrome & IE8.
The columns in this table can be sorted by the Tablekit library.





However, after adding the periodic refresh by AJAX (eventually I want to refresh only the web page when there is new data available) and <div>, then the columns in this table cannot be sorted by the Tablekit library.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Sounds like you need to find a way to call the function that initializes the table to be sorted after you replace the content. How is the code supposed to know you removed one thing and added another?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: table columns not sorted by Tablekit after AJAX call and <div> is added