Tema: Falla Scipt
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/02/2003, 13:46
Avatar de GUAPOBEN
GUAPOBEN
 
Fecha de Ingreso: noviembre-2002
Ubicación: Mexico DF
Mensajes: 204
Antigüedad: 21 años, 6 meses
Puntos: 1
Falla Scipt

Hola¡

Tengo un script que tiene un select el cual te redirecciona segun la opcion que pongas, unicamente que al direccionarla a un archivo directo (archivo.htm) no funciona y pongo (http://miweb/archivo.htm) si funciona me manda el error :

Error Linea 44
document.jumpy.example no es un objeto.

pero la linea 44 no existe.

Codigo:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Pagina nueva 1</title>
</head>

<body>

<form name="jumpy">
<p><!--webbot bot="Validation" S-Display-Name="Tipo de Busqueda"
B-Value-Required="TRUE" B-Disallow-First-Item="TRUE" --><select name="example" size="1" onChange="gone()" tabindex="1">
<option selected>Seleccionar</option>
<option value="aci.htm">ACI</option>
<option value="acriter.htm">ACRITER</option>
<option value="axia.htm">AXIA</option>
</select>

<script language="JavaScript">
<!--

function gone()
{
location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
}
//-->
</script>

<input type="button" name="test" value="IR"
onClick="gone()">
&nbsp;&nbsp;
</p>
</form>
</body>

</html>


GRACIAS por su ayuda
__________________
Guapo Ben
Servidor y Amigo :adios: