English 中文(简体)
在我完成改动后,表内的优质方言数据自动更新。
原标题:JQuery dialog update data in table automatically when I finish with changes

我有包含表格的联合项目页。 当我点击一张桌子,用该行在方言中提供的数据,启动JQuery dialog。 我可以改变数据,当我点击纽顿应用程序时,可以将数据输入非行。

I want to refresh that row with new data when I write data to DB. Now I need to press F5 to do it.

在我更新行文时,是否具备自动做字塔的功能。

最佳回答

我认为,你需要写一下自己的法典来这样做。 您可增加“方言”栏目“

问题回答

No. HTTP is a request-response protocol. The client has to request something to get it. You could poll the server every X seconds to get changes. Or use something like Comet, but it would probably be overkill.

但是,你可以做的是,一旦采取节省行动,就会恢复贾瓦伦的网页或桌子,以便把数据从非行上载。 你刚刚赢得了申请的其他使用者所做的改变。

function doUpdate(id,codice,descrizione,descrBreve,colore) {
        var i = 1;

        $( #row_  + id).children().each(function(){ 
            var kid = $(this); 

            if (i==2){
                kid.text(codice);
            }
            if (i==3){
                kid.text(descrizione);
            }
            if (i==4){
                kid.text(descrBreve);
            }
            if (i==5){
                 $(this).find( :first-child ).css( background-color , colore); 
            }
            if (i==6){
                kid.text(colore);
            }
            i= i + 1;
        });

如果任何人需要更新,只需要更新一行的桌子,而无需复读。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签