Input field of shoutbox not working

43 views
Skip to first unread message

Rafa XRayOnEyes

unread,
Sep 22, 2016, 10:28:45 AM9/22/16
to AJAX-chat
Hi!,

I installed Ajax Chat in a testing site wihout problem and it's working at:
http://mascahierro.es/chat/
I tried to create a shoutbox and messages are shown but input field from the shoutbox does not work:
http://mascahierro.es/chateando.php
All messages published from the chat at http://mascahierro.es/chat/ are showed but there's no way to publish anything from the shoutbox.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<link href="chat/css/shoutbox.css" media="screen" type="text/css" rel="stylesheet">
</head>

<body>
<?php
function getShoutBoxContent() {
    // URL to the chat directory:
    if(!defined('AJAX_CHAT_URL')) {
        define('AJAX_CHAT_URL', 'http://mascahierro.es/chat/');
    }

    // Path to the chat directory:
    if(!defined('AJAX_CHAT_PATH')) {
        define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
    }

    // Validate the path to the chat:
    if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {
   
    // Include Class libraries:
        require_once(AJAX_CHAT_PATH.'lib/classes.php');
   
    // Initialize the shoutbox:
        $ajaxChat = new CustomAJAXChatShoutBox();
   
    // Parse and return the shoutbox template content:
        return $ajaxChat->getShoutBoxContent();
    }

    return null;
}
?>
<div style="width:400px;"><?php echo getShoutBoxContent(); ?></div>
</body>
</html>

Can you help about this. Is there something I'm missing?.
Thanks in advance,
Rafa


Cuore di angelo

unread,
Sep 23, 2016, 11:56:09 AM9/23/16
to ajax...@googlegroups.com

a solution would be to open the chat in a popup window. Here the instructions:


https://github.com/Frug/AJAX-Chat/wiki/Chat-in-popup-window

Rafa XRayOnEyes

unread,
Sep 24, 2016, 1:43:57 PM9/24/16
to AJAX-chat
Thanks "Coure di angelo" for your reply.

Looking at GitHub, I found it was a bug:
https://github.com/Frug/AJAX-Chat/issues/215
There's a solution there
Reply all
Reply to author
Forward
0 new messages