javascript - Compute differences between 2 HTML pages and dynamically change first -


i have hmtl page (re-)generated every 3 seconds , need expose these changes users.

since can't change generator write in different format (json) , read using ajax, right have javascript refreshes whole page every 10 seconds.

ideally, need instead of refreshing whole page, refresh fields changed.

the page structure never changes, value of table cells. every table cell has different class name.

ex:

original html, running @ user's browser contains:

<html><body><div class="firstdiv">1000</div></body></html> 

after 3 seconds changes in server to:

<html><body><div class="firstdiv">2000</div></body></html> 

a javascript read via ajax changed html every 3 seconds, calculate difference , apply changed page opened @ user's browser, using javascript:

$('.firstdiv').html('2000'); 

so question is: there tool/library can me task?


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -