Jump to content

Archived

This topic is now archived and is closed to further replies.

tomfmason

simple question

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Why don't you order them in descending time sequence do latest always appear first?

Share this post


Link to post
Share on other sites
I thought about that but the standard format for chat is acending.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.