Updating a list

Updating a list

I've written some JQuery code to continuously poll my server for a list of items. When the server responds, I remove all the items from the list on my page and add the new ones from the server in. This causes a few problems with the user interface. When the list is updated, the scrollbars move back up. Also, if you click and hold one of the list items, the button state resets when the list is updated.

Does JQuery / JQuery mobile provide something to help with this? My server doesn't support sessions, so I can't really send changes to the list. I need to send the entire list every time.