...

Load Chat on Refesh

ptmuldoon
10-16-2007, 08:09 PM
I game across a ajax chat that stores all of the messages into a database, and it all works very well. But..........

The chat is designed that when you refresh the page, the chat window is erased, with all the prior comments not showing up (although they are in the still in the database).

I would like to be able to change this so that the prior comments stay shown for the user to read.

As I'm new to javascript and ajax, I'm not sure what I should be looking for. I'm not sure what other information to try and provide, but if anyone has any tips, it would be great.

Thanks
PT

bootcom
10-16-2007, 11:28 PM
The chat is designed that when you refresh the page, the chat window is erased, with all the prior comments not showing up (although they are in the still in the database).


Without any code to look at, this could be a cookie or maybe a session variable that sets the date and time that the page loads and then only picks out the database entries from that particular point.

What would you like the code to do for you?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum