Hi albert,

In the tablekit library, there probably is a listener on window load event that will look for html table tags and perform actions on them. You should perform those actions when ajax updater succeed.

Guillaume


Le 13 mars 2010 à 17:19, albert kao <albertk...@gmail.com> a écrit :

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.
Code:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/tablekit.js"></script>

<body>
 <div id="mainmenu">
  ...
 </div>
 <div id="content">

 <table class="sortable resizable">
 <thead><tr>
   <th class="sortfirstdesc">ID</th>
   <th>Date</th>
   <th>Time</th>
 </tr></thead>
 </table>
 </div>
</body>

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.
Code:
<body onload="new Ajax.PeriodicalUpdater('topmenu', 'activity.htm',
{method: 'get', frequency: 10});">
<div id="topmenu">
...
 <div id="mainmenu">
  ...
 </div>
 <div id="content">

 <table class="sortable resizable">
 <thead><tr>
   <th class="sortfirstdesc">ID</th>
   <th>Date</th>
   <th>Time</th>
 </tr></thead>
 </table>
 </div>
</body>
</div>

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en .


--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to