hi..guys..
i have a problem here…
the problem is like this….
i have managed to create a chat application using PHP with the auto refresh…
for the chatting screen, i have used layer to contain all the user chatting messages..as u know..when user keep on typing and sending messages..the layer will eventually and automatically create a vertical scroll…
To retrieve the data from the database…i need to keep the chatting screen(layer page) to be frefreshed in every several seconds…
the problem is..when it is refreshing….the scroll bar in the layer will also be refreshed and the screen will scroll up back to the top of the messages…
so, i wanna ask who knows how to make the scrollbar not to back to top…but stay at the bottom (when page is refreshing)..so that the user can see the latest message they typed…
? any javascript methods or other functions can help this? ?
thanks…