konki_vienna
20 Oct 2010, 4:10 AM
Hi,
I investigate in developing an application which polls every 10 seconds data from a server and displays it in a list (with up to 50 entries) or in several (let's say upt o 50) buttons (not decided yet). Every time I get a serverresponse, some data might have changed.
- Is it better to redraw all the elements (complete list/several buttons) (removeAll and draw all new) or
- to look which items have to be changed, removed and added.
Of course the second way would cause in much more complicated java-script-functions, why I would love to avoid it. :)
I investigate in developing an application which polls every 10 seconds data from a server and displays it in a list (with up to 50 entries) or in several (let's say upt o 50) buttons (not decided yet). Every time I get a serverresponse, some data might have changed.
- Is it better to redraw all the elements (complete list/several buttons) (removeAll and draw all new) or
- to look which items have to be changed, removed and added.
Of course the second way would cause in much more complicated java-script-functions, why I would love to avoid it. :)