Update scrollable table with ajax

Update scrollable table with ajax

I have found this excellent plugin that transform a regular table to a scrollable table. http://www.webtoolkit.info/scrollable-html-table.html
It works great.

I want to update the table with ajax every 10 second. The problem is that once it has updated, it looses the scrolling feature and becomes a regular table. I have tried to set Scrollable() after loading the page, but it doesn't help. Any ideas?

<div id="Meddelanden">
<table cellspacing="1" id="MeddelandenLista">
<tr>
<td>test</td>
</tr>
</table>
</div>

*****************



$(document).ready(function(){
   $("div#Meddelanden table").Scrollable(200,800);
   ListaUppdatera();
});

function ListaUppdatera()
{
   var _url = "ajax/Inbox.php?" +
               "Action=visa" +
               "&Skickade=" + ((VisaSkickade) ? "true" : "false") +
               "&ListaAllaMeddelanden=" + ((ListaAllaMeddelanden) ? "true" : "false")
            ;

   $('div#Meddelanden').load(_url);
   $("div#Meddelanden table").Scrollable(200,800);

   //uppdatera efter nÃ¥gra sekunder
   if(UppdateraLista) setTimeout("ListaUppdatera()", 10000);
}