Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/11/2007, 22:45
jose_sv
 
Fecha de Ingreso: noviembre-2007
Mensajes: 24
Antigüedad: 16 años, 6 meses
Puntos: 0
Re: ZiTALK - xHTML/Javascript/PHP/MySQL Ajax Chat

Instalado en
http://www.malko.com/alkimistas/dialogo/chats/zitalk/

linea 39 zitalk.module.php
if($row[$comment_id]!=NULL)
if($row[$table_comment]!=NULL)

linea 45 js/ajax.js
fajax3();
fajax3(hash_id,chat_id,page_name);

Cita:
//function fajax(comment_id,page_name)
function fajax(hash_id,chat_id,comment_id,page_name)
{
var comment;
comment = document.getElementById(comment_id).value;
var ajax;
ajax = new ajaxFunction();
ajax.open("POST",page_name + "?Send=yes",true);
ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ajax.send("comment="+comment);

document.getElementById(comment_id).value="";
document.getElementById(comment_id).focus();
//fajax3();
fajax3(hash_id,chat_id,page_name);
}
linea 33 templates/default.php
<input type="button" value="send" onclick="fajax('<?php echo $comment_id; ?>','<?php echo $page_name; ?>')" />
<input type="button" value="send" onclick="fajax('<?php echo $hash_id; ?>','<?php echo $chat_id; ?>','<?php echo $comment_id; ?>','<?php echo $page_name; ?>')" />

Última edición por jose_sv; 05/11/2007 a las 23:01