I am creating a live support script. It works fine execpt that I manually have to refresh or make a new post to see any posts that are made by someone else.
So what I thought I would do is but in a meta refresh. I did this and it worked but when there are enough messages that you have to scroll down, it starts back at the top of the messages.
Then I tried this
<meta http-equiv="refresh" content="2" url=http://www.mysite.com/chatbox.php#bottom">
and then at the bottom of the script I would but <a name="#bottom"> </a>
This works for the user end but not for the admin end. Since I need the chat_id to be able to connect with that particular person.
What I need to do on the admin section is pass the chat_id to the chat box. I can do this by admin/chatbox.php?chat_id=$chat_id but I also need to have the #bottom.
Any suggestions on how to do this or a better way to accomplish this would be great.