Hi
I need to create and update a table based on an XML sent to the function. The xml can look like this:
[CODE]
<filecollection>
<file>
<filename>file1.exe</filename>
<md5>a7b8c71855547654367728fab99efa33</md5>
<status>1</status>
</file>
<file>
<filename>file2.exe</filename>
<md5>489b2760984e720b69475db97a409e8f</md5>
<status>2</status>
</file>
</filecollection>
The table will show two columns, filename and status. The md5 is the md5 (!) of the filecontent and may be used as a unique id of rows. Status will be different values depending on what is being done with the file in the background.
This xml will be sent every 2-3-4 seconds, and the table need to be updated if the status has changed, or if a new file is in it, or an existing one is gone.
Do any of you know of any ready scripts out there I can use to do this. I’m not a good javascipter (obviously) and need something almost complete.
I have figured out how to create the table first time with createElement, appendChild and such. But I don’t know how to update it, and how to update the specific rows where status has changed. I could delete the table each time and rebuild it, but that would cause it to flicker, and that looks a bit bad.
Thanks for any links, suggestions or advice
Lubox