Foros del Web » Programando para Internet » Jquery »

[jQuery] No anda en IE

Estas en el tema de [jQuery] No anda en IE en el foro de Jquery en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 28/01/2009, 12:53
Avatar de 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
  #2 (permalink)  
Antiguo 28/01/2009, 14:01
Avatar de pato12  
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Respuesta: [jQuery] No anda en IE

Hola,
Ya esta solucionado. El error eran 2 comas, que me guíe con este post:
http://www.forosdelweb.com/f127/jque...plorer-636802/
Gracias
Salu2
__________________
Half Music - www.halfmusic.com
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:06.