Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2009, 12:53
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
[jQuery] No anda en IE

Hola,
Hice un chat pequeño para mi web, pero no anda en IE. Este es el codigo:
Código HTML:
function replace_s(texto,s1,s2){
	return texto.split(s1).join(s2);
}
function enviarChat(){
var _this=$('#mensaje-chat');
if(replace_s(_this.val(),' ','')!=''){
var mensaje=_this.val();
_this.val("");
 $.ajax({
   type: "POST",
   data: "mensaje="+mensaje,
   url: "modulos/chat/enviar.php",
 });
}
}
function enterEnvid(e) { 
tecla = (document.all) ? e.keyCode :e.which; 
	if(tecla==13){
		enviarChat();
	}
}
function chat(){
var _this=$('#chat-consola');
 $.ajax({
   type: "POST",
   data: "r=56657567567",
   url: "modulos/chat/chat.php",
   error:function (obg,error){
   _this.html("No se pudo conectar al chat.");
   },
   success:function (msg){
   _this.html(msg);
   _this.scrollTop(0);
   },
 });
}
function actializar(tr){
	if(tr){
		chat();
		var chatear=setTimeout("actializar(true);",1240);
	}else{
		clearTimeout(chatear);
	}
}
window.onload=function(){ 
	actializar(true);
	$('#chat-consola').html('<strong>Conectandose al chat... </strong>');
}
Gracias
Salu2
__________________
Half Music - www.halfmusic.com