View Single Post
Old 03-08-2012, 04:01 PM   PM User | #2
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,015
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
Quote:
Originally Posted by fishbaitfood View Post
Hello all,

I have this PHP-jQuery-Ajax chat application, which uses PHP to open and write to a logfile and with jQuery and Ajax displaying and posting the messages.
However, when loading the logfile with Ajax, there's a setInterval attached to reload it every 2.5 seconds or so.

Now my problem is that when selecting content of the chatlog, the selection gets removed obviously, because of the reloading.

How can I make the messages kind of permanent on the page, for selecting posted links and such.

This must be possible some way, right, because chatmodules like Facebook's one also achieves this.

Can someone please inform or instruct me on how to do this?

Thanks!
A link to your test page would do wonders for us.
__________________
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
Seek and you shall find... basically:
validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting
Rowsdower! is offline   Reply With Quote