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 (Scott.Wiseman)
- Subject: [Javascript] WHY would a drop down box redirection scirpt
- Date: Wed, 26 Sep 2001 10:25:55 -0700
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C146B0.4CBCAC4A Content-Type: text/plain; charset="iso-8859-1" thanks for your vcard but can anyone answer me why -----Original Message----- From: staeger [mailto:staeger@xxxxxxxxxxxx] Sent: Tuesday, September 25, 2001 11:42 PM To: javascript@xxxxxxxxxx Subject: Re: [Javascript] WHY would a drop down box redirection scirpt "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./ ------_=_NextPart_001_01C146B0.4CBCAC4A Content-Type: text/html; charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12"> <TITLE>RE: [Javascript] WHY would a drop down box redirection scirpt</TITLE> </HEAD> <BODY> <P><FONT SIZE=2>thanks for your vcard </FONT> </P> <P><FONT SIZE=2>but can anyone answer me why</FONT> </P> <P><FONT SIZE=2>-----Original Message-----</FONT> <BR><FONT SIZE=2>From: staeger [<A HREF="mailto:staeger@xxxxxxxxxxxx">mailto:staeger@xxxxxxxxxxxx</A>]</FONT> <BR><FONT SIZE=2>Sent: Tuesday, September 25, 2001 11:42 PM</FONT> <BR><FONT SIZE=2>To: javascript@xxxxxxxxxx</FONT> <BR><FONT SIZE=2>Subject: Re: [Javascript] WHY would a drop down box redirection scirpt</FONT> </P> <BR> <BR> <BR> <P><FONT SIZE=2>"Scott.Wiseman" wrote:</FONT> </P> <P><FONT SIZE=2>></FONT> <BR><FONT SIZE=2>></FONT> <BR><FONT SIZE=2>> work on one machine in the same browser</FONT> <BR><FONT SIZE=2>> and not work on another</FONT> <BR><FONT SIZE=2>></FONT> <BR><FONT SIZE=2>> one machine has windows 2k</FONT> <BR><FONT SIZE=2>> the other windows nt.</FONT> <BR><FONT SIZE=2>></FONT> <BR><FONT SIZE=2>> i.e.</FONT> <BR><FONT SIZE=2>></FONT> <BR><FONT SIZE=2>> code</FONT> <BR><FONT SIZE=2>></FONT> <BR><FONT SIZE=2>> <head></FONT> <BR><FONT SIZE=2>> <title>Admin Main Menu</title></FONT> <BR><FONT SIZE=2>> <meta http-equiv="Content-Type" content="text/html;</FONT> <BR><FONT SIZE=2>> charset=iso-8859-1"></FONT> <BR><FONT SIZE=2>> <SCRIPT LANGUAGE="JavaScript"></FONT> <BR><FONT SIZE=2>> <!--</FONT> <BR><FONT SIZE=2>> function reDirect(thevar)</FONT> <BR><FONT SIZE=2>> {</FONT> <BR><FONT SIZE=2>> window.location.href = thevar.value;</FONT> <BR><FONT SIZE=2>> }</FONT> <BR><FONT SIZE=2>> // --></FONT> <BR><FONT SIZE=2>> </SCRIPT></FONT> </P> <P><FONT SIZE=2>shouldn't it be :</FONT> </P> <P><FONT SIZE=2>function reDirect(thevar)</FONT> <BR><FONT SIZE=2> {</FONT> <BR><FONT SIZE=2> window.location.href = thevar.options[thevar.selectedIndex].value;</FONT> </P> <P><FONT SIZE=2>}</FONT> </P> <P><FONT SIZE=2>greets ben./</FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01C146B0.4CBCAC4A--
- Prev by Date: [Javascript] WHY would a drop down box redirection scirpt
- Next by Date: [Javascript] WHY would a drop down box redirection scirpt
- Previous by thread: [Javascript] WHY would a drop down box redirection scirpt
- Next by thread: [Javascript] WHY would a drop down box redirection scirpt
- Index(es):