Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-16-2007, 08:09 PM   PM User | #1
ptmuldoon
Regular Coder

 
Join Date: Feb 2005
Posts: 659
Thanks: 5
Thanked 14 Times in 14 Posts
ptmuldoon is on a distinguished road
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
ptmuldoon is offline   Reply With Quote
Old 10-16-2007, 11:28 PM   PM User | #2
bootcom
New Coder

 
Join Date: Jul 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
bootcom is an unknown quantity at this point
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?
bootcom is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:35 PM.


Advertisement
Log in to turn off these ads.