tomfmason Posted July 22, 2006 Share Posted July 22, 2006 Ok here is another rather simple question. First I will explain what I am trying to do and then I will show what I have done so far.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[code]<meta http-equiv="refresh" content="2" url=http://www.mysite.com/chatbox.php#bottom">[/code]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. Quote Link to comment Share on other sites More sharing options...
Barand Posted July 22, 2006 Share Posted July 22, 2006 Why don't you order them in descending time sequence do latest always appear first? Quote Link to comment Share on other sites More sharing options...
tomfmason Posted July 22, 2006 Author Share Posted July 22, 2006 I thought about that but the standard format for chat is acending. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.