Hi all,
I have created a chat room where the 'chat' is stored in a database and is periodically updated when checking for new messages. (every 10 seconds).
The problem occurs when the user is reading a long list of messages, and the browser has to reload the messages from the database due to a page refresh.
I have added the code to return to the point where the user was reading, but I cannot avoid the scrollbars jumping to the top due to a delay in the creation of the message data, which makes the reading of the messages impossible.
Does anyone know how to 'freeze' the screen until the page has reloaded to the scroll position that I have set.
Your help would be greatly appreciated!
N
I have created a chat room where the 'chat' is stored in a database and is periodically updated when checking for new messages. (every 10 seconds).
The problem occurs when the user is reading a long list of messages, and the browser has to reload the messages from the database due to a page refresh.
I have added the code to return to the point where the user was reading, but I cannot avoid the scrollbars jumping to the top due to a delay in the creation of the message data, which makes the reading of the messages impossible.
Does anyone know how to 'freeze' the screen until the page has reloaded to the scroll position that I have set.
Your help would be greatly appreciated!
N