English 中文(简体)
表8. 电池的活度
原标题:Tablesorter live content from php sorting jquery

我有一个这样的表:

标题:

A. 导 言

页: 1

C. 结 论

我从我的纸面上获得所有权,价格来自Sphp的文字。

我的“价格”一栏就认为:

<script type="text/javascript" >
$(function() { 
var price = setInterval(function()
{
$( #A ).load( live_price.php?title=A ).fadeIn("slow");

},6000);
});
<script>

生活——价格.php确实是许多 cr和 sp。

Now, in this case, price update every 6 seconds and updates each row. My problem has to do with sorting this new content.

I tried using:

$(“table”).trigger(“update”);;

$("table").trigger("sorton",[sorting]); without any success. Please help

问题回答

See here for the docs.

我认为,你可能只是想确定这种秩序。

var sorting = [[2,1],[0,0]]; 

前言

$("table").trigger("sorton",[sorting]);

另一个问题是,载荷正在销毁表中的所有数据。 在表格填满新数据之后,你可能需要每一次重新开始原始数据。

Maybe what you want is to use the "updateCell" method. It isn t documented, but it exists. I made a blog post showing how to use it.

Also, if you are interested, I ve forked a copy of tablesorter on github and made some improvements to the plugin. I even included automatically resorting the table after updates - here is the updateCell demo page - click inside any cell in the "Total" column to see it work.





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签