I want to update the data changing only, with ajax,and I load the data every 5 seconds
I have two pages,the first contain the data(an array table) and the second displays the result as shown in the code. I want this page changes only changed values
For the code in the first page I load data from the server(xml file) and I store it in an array table.
Help me please.
thank you.
Updating only new data is possible with
$.ajax. But there is no any magic method to do that. You must keep track of items changed between requests on server and return only those in JSON. Than, insuccesscalback – go through all received elements (for instance, that could be an array with item to update as a key and value as a new value for that item) and update them.