Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/06/2008, 05:20
Avatar de avielo
avielo
 
Fecha de Ingreso: junio-2008
Ubicación: Córdoba (España)
Mensajes: 111
Antigüedad: 16 años, 8 meses
Puntos: 2
Respuesta: Eventos en firefox

la funcion get option value es esta,
Código:
function getOptionValue(obj)
 	{
 		var index0;
		if (obj.name == "select1")
		{
			index0 = document.form1.select1.selectedIndex;
		}
		else
		{
		index0 = obj;
		}
			
		switch(index0)
		{
			case 0: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php';
			break;
			case 1: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php?opcion=1';
	 		break;
			case 2: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php?opcion=2';
	 		break;
			case 3: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php?opcion=3';
	 		break;
			case 4: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php?opcion=4';
	 		break;
			case 5: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php?opcion=5';
	 		break;
			case 6: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php?opcion=6';
	 		break;
			case 7: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php?opcion=7';
	 		break;
			case 8: document.frames.noticias.location='http://www.cdisur.com/nuevaweb/noticias.php?opcion=8';
	 		break;
		} 		
 	}
lo que hace es segun elijas una opcion en el combo cargar las noticias de un rss.

en IE funciona correctamente, pero en firefox y safari, cuando le das no hace nada ni si quiera llama a la funcion.