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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ajax refresh div chatbox

    Hello, to sadden for my English but I use a translator because I do not know how to speak: (

    My problem is that I have create a chatbox. I would like to be able to refresh my div which posts(shows) messages ajax.

    Here is my div:

    Code:
    <div id="madiv"class="message">
    
    <?php $message = nl2br(stripslashes(controle($donnees['message']))); ?>   
    
    <?php echo ($donnees['date_message']); ?> <?php echo $donnees['auteur']; ?>
    dit: <?php echo $message; ?>
    </div>

  • #2
    Regular Coder
    Join Date
    Nov 2009
    Posts
    247
    Thanks
    4
    Thanked 22 Times in 22 Posts

  • #3
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Quote Originally Posted by Sciliano View Post
    not so sure if it's a good idea to refer someone to code from several years ago that was posted by a banned user , just saying, who knows what's in the php code.


  •  

    Posting Permissions

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