Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] WHY would a drop down box redirection scirpt


  • From: javascript@xxxxxxxxxx (staeger)
  • Subject: [Javascript] WHY would a drop down box redirection scirpt
  • Date: Wed, 26 Sep 2001 08:42:07 +0200

This is a multi-part message in MIME format.
--------------FC8D16EAD08A4317BDC64F53
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



"Scott.Wiseman" wrote:

>
>
> work on one machine in the same browser
> and not work on another
>
> one machine has windows 2k
> the other windows nt.
>
> i.e.
>
> code
>
> <head>
> <title>Admin Main Menu</title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <SCRIPT LANGUAGE="JavaScript">
> <!--
> function reDirect(thevar)
>  {
>       window.location.href = thevar.value;
> }
> // -->
> </SCRIPT>

shouldn't it be :

function reDirect(thevar)
 {
      window.location.href = thevar.options[thevar.selectedIndex].value;

}

greets  ben./

--------------FC8D16EAD08A4317BDC64F53
Content-Type: text/x-vcard; charset=us-ascii;
 name="staeger.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for staeger
Content-Disposition: attachment;
 filename="staeger.vcf"

begin:vcard 
n:staeger;benjamin
tel;cell:+41 79 2263141
tel;fax:+41 1 6331133
tel;home:+41 1 2623228
tel;work:+41 1 6332902
x-mozilla-html:FALSE
url:http://caad.arch.ethz.ch/
org:architecture & caad;swiss federal institute of technology
version:2.1
email;internet:staeger@xxxxxxxxxxxx
title:dipl.arch.eth / sia
adr;quoted-printable:;;prof. engeli / hpi - f23=0D=0A;8093 eth-hoenggerberg;;;switzerland
fn:benjamin staeger
end:vcard

--------------FC8D16EAD08A4317BDC64F53--