Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Posts
    663
    Thanks
    5
    Thanked 14 Times in 14 Posts

    Load Chat on Refesh

    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

  • #2
    New Coder
    Join Date
    Jul 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by ptmuldoon View Post
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •