update multiple numeric div ids using getjson and jquery
I know how to update multiple text div ids on a webpage using jquery and
getjson and repeat this task every 10 seconds.
Now I have build a dynamic page which paints html and multiple unique
numeric div ids, with the current value from the database.
<div id="458">1</div> <div id="459">3</div> <div id="460">1</div> <div
id="462">4</div> <div id="480">0</div>
at the same time i have created a json file containing the last the last
value of the database JSON might look like this after 10 seconds
{"458":1,"459":4,"460":2,"462":4,"480":2}
Only this page is dynamicly created and each call to this page will return
unique numeric div ids with an amount of div ids that can vary between 0
and 50.
It is very challenging and I have been checking on google to find examples
for hours but didn't see this yet. Perhaps someone could show me the way
to find a solution to update the divs as specified in example text above
in one go and set a repeat interval of 10 seconds
No comments:
Post a Comment