<script type="text/javascript" src="path to jquery">
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready($){
function(){
$.ajax({
type: "GET",
url: "url path to your script/chat (and you can use strings)",
success: function(data){
chat = data;
$("#load_chat").html(chat);
}
});
};
});
</script>
Then in your body you call for it to load in the <div id="load_chat"></div> container
You could try a shoutbox.
That won't work unless you allow script is made.
No JS will load in the page, and the CSS will all be screwed
--
You received this message because you are subscribed to the Google Groups "AJAX-chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The method I mentioned I actually used one before loading the chat perfectly if you know what you are doing.
But whatever, as long as you get it working.
--
<?php/* * @package AJAX_Chat * @author Sebastian Tschan * @author Philip Nicolcev * @copyright (c) Sebastian Tschan * @license Modified MIT License * @link https://blueimp.net/ajax/ */
// Suppress errors:error_reporting(0);
// Path to the chat directory:define('AJAX_CHAT_PATH', '/absolute/path/public_html/mysite/assets/chat/');
// Include custom libraries and initialization code:require(AJAX_CHAT_PATH.'lib/custom.php');
// Include Class libraries:require(AJAX_CHAT_PATH.'lib/classes.php');
// Initialize the chat:$ajaxChat = new CustomAJAXChat();
/* * @package AJAX_Chat * @author Sebastian Tschan * @author Philip Nicolcev * @copyright (c) Sebastian Tschan * @license Modified MIT License * @link https://blueimp.net/ajax/ */
// Suppress errors:error_reporting(0);
// Path to the chat directory:
define('AJAX_CHAT_PATH', MODX_ASSETS_PATH.'components/chat/');