Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Maq

  1. Your PHP structure is a bit messy but essentially what you want to do is make an AJAX call to the script that grabs the latest set of entries from your shouts table. This snippet requires JQuery and will probably populate your chat more than you want but at least you'll get the idea:

    function refreshChat(){
    	
    	var url = './your-php-script.php'; //Pass in whatever parameters you need here
    	
    	$.ajax({
    	    type: 'POST',
    	    url: url,
    	    success: function(data){
    		    $('div#chat').replaceWith(data); 
    	    }
    	});
    }
    
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.