I’m working on a private chat system. I use PHP and Javascript and a lot of frames. 😀
frames:
-------------*---------------
| chat messages here |
-------------*---------------
|send message frame |
-------------*---------------
I want to update the frame where the chat messages are, but I would like to do it cool way. You know if I just reload the frame that don’t looks cool. If i just reload a small div, that maybe a bit better, but I don’t know… I mean this:
function newMessageShow()
{
print messages ...
// wait 10-20 sec... somehow
newMessageShow();
}
You know what I mean, no? … I’m sorry for my poor english… If you understood me, could you help me a bit?
If you meant how to scroll down to the bottom of the view use
scrollTop. I have an example here to see what I mean – http://jsfiddle.net/uPLWT/