newseed Posted February 21, 2009 Report Share Posted February 21, 2009 I'm looking for a script that will allow me to expand a table that has a set of sortable data. I've tried to use toggle which works fine when I need to expand/show the table to allow all the data to appear. The problem lies is that when I want to sort the data, the toggle resets back to close/hide thus I have to expand it again but then it ends up back to the default sort string. I basically need something that will expand the table data and stay open regardless if the page refresh or not even when the user sorts the data. It will only need to reset or close when the user clicks the hide/close button to close it or when the browser window is closed. Any suggestions? Thanks. Quote Link to comment Share on other sites More sharing options...
monkeysaurus Posted February 22, 2009 Report Share Posted February 22, 2009 What are you using to sort the table? Without seeing any code it's a little difficult to guess why your table is being hidden on sort. If you're hoping to track the open/closed status of the table across page refreshes etc, you'll need to track persistence somehow - cookies would probably be the way to go. Quote Link to comment Share on other sites More sharing options...
monkeysaurus Posted February 22, 2009 Report Share Posted February 22, 2009 Also, have you seen the tablesorter plugin? Quote Link to comment Share on other sites More sharing options...
newseed Posted February 22, 2009 Author Report Share Posted February 22, 2009 (edited) Unfortunately, I cannot provide a link to the actual page because it is a restricted access that contains vital personal information. The sorting is not the problem. The problem is when you expand the table itself but it doesn't stay open when you choose one of the sorting method. Here's a link to a another site that is using the same click toggle script: chi ccorpo rateapparel.com/branding-bout iques.asp Click on the first 'see details' and below you will find a table. Now keep in mind that this table does not have a sorter function but if you click anywhere within that expanded area, it closes back up. This is the same problem when you click on one of the sort/query from the any of the table column heading. Now I found this which brings us closer but we are hoping to use something that will expand fully and retract completely with just a click of the button. Edited February 22, 2009 by newseed Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.