Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/01/2012, 18:28
ersito
 
Fecha de Ingreso: julio-2008
Mensajes: 84
Antigüedad: 15 años, 10 meses
Puntos: 0
¿PQ esto no me funciona en IE??

Hola a todos, como veréis no soy un experto en JS... hago lo que puedo

Tengo esta función que corre bien en Chrome y en FireFox, pero no en IE

¿Alguien puede decirme por que es? y ya de paso, si conocéis algún sitio donde se pueda estudiar como no liarla con esto lo agradecería mucho.


Código:
	function check (rate,vote,value) {
		var show_select = '<select id=s_speed_'+vote+'>';
		show_select += '<OPTION VALUE="1"';
			if (value ==1) {show_select += ' SELECTED';}
		show_select += '>1</OPTION>'; 
		show_select += '<OPTION VALUE="2"';
			if (value ==2) {show_select += ' SELECTED';}
		show_select += '>2</OPTION>'; 
		show_select += '<OPTION VALUE="3"';
			if (value ==3) {show_select += ' SELECTED';}
		show_select += '>3</OPTION>';
		show_select += '<OPTION VALUE="4"';
			if (value ==4) {show_select += ' SELECTED';}
		show_select += '>4</OPTION>';
		show_select += '<OPTION VALUE="5"';
			if (value ==5) {show_select += ' SELECTED';}
		show_select += '>5</OPTION>';
		show_select += '</select>';
		
		document.getElementById(rate+'_'+vote).innerHTML = show_select;
	}
MUCHAS GRACIAS