manual refresh of div content only ?
Posted on 2009-05-13
I have a online list of users in a chatroom window. I use getElementById to change the users status such as "idle" etc. All works fine. However, I have to clear my online list, then redraw all the users if anything changes. So when a user enters the room, the list is blanked, then everything is redrawn.
The only way I can think of doing this, is to output a hidden div and buffer everything to that, and then simply copy the buffer to the actual screens online list. Though is it possible to hide a div content's window and make it small so it does not get in the way or show up on the screen ? Would getElementById work with a simple variable string so I cna just buffer everything to that, change the values, then output to the screen's online list when everything is done ?
Or is there a way to turn off what the user sees on the online list until I actually issue a manual refresh command ?