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 (Scott.Wiseman)
  • Subject: [Javascript] WHY would a drop down box redirection scirpt
  • Date: Tue, 25 Sep 2001 16:28:33 -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_01C14619.CAE3B272
Content-Type: text/plain;
	charset="iso-8859-1"

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>
</head>

<body >

<div align="center">
  <center>
  <table border="1" width="500">
    <tr>
      <td width="243"> 
           Administer People in the Office
      </td>
      <td width="241">Administer the Offices</td>
    </tr>
    <tr>
      <td width="243"> 
           <select name="AdminPeople" onChange="reDirect(this)" size="1">
           <option
value="/testing/admin/AdminTransferPeople.asp">TransferPerson</option>
           <option
value="/testing/admin/AdminTerminatePeople.asp">TerminatePerson</option>
           <option
value="/testing/admin/AdminLOAPeople.asp">LOAPerson</option>
            <option
value="/testing/admin/AdminReactivatePeople.asp">ReActivatePerson</option>
            <option
value="/testing/admin/AdminEditProfile.asp">ChangeProfileid</option>
           <option selected>Select Choice</option>

            </select>
      </td>

------_=_NextPart_001_01C14619.CAE3B272
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>WHY  would a drop down box redirection scirpt</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>work on one machine in the same browser</FONT>
<BR><FONT SIZE=3D2>and not work on another</FONT>
</P>

<P><FONT SIZE=3D2>one machine has windows 2k</FONT>
<BR><FONT SIZE=3D2>the other windows nt.</FONT>
</P>

<P><FONT SIZE=3D2>i.e.</FONT>
</P>

<P><FONT SIZE=3D2>code</FONT>
</P>

<P><FONT SIZE=3D2>&lt;head&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;title&gt;Admin Main Menu&lt;/title&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;meta http-equiv=3D&quot;Content-Type&quot; =
content=3D&quot;text/html; charset=3Diso-8859-1&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;SCRIPT =
LANGUAGE=3D&quot;JavaScript&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;!--</FONT>
<BR><FONT SIZE=3D2>function reDirect(thevar)</FONT>
<BR><FONT SIZE=3D2>&nbsp;{</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; window.location.href =
=3D thevar.value;</FONT>
<BR><FONT SIZE=3D2>}</FONT>
<BR><FONT SIZE=3D2>// --&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/SCRIPT&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/head&gt;</FONT>
</P>

<P><FONT SIZE=3D2>&lt;body &gt;</FONT>
</P>

<P><FONT SIZE=3D2>&lt;div align=3D&quot;center&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp; &lt;center&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp; &lt;table border=3D&quot;1&quot; =
width=3D&quot;500&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; &lt;tr&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td =
width=3D&quot;243&quot;&gt; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Administer People in the Office</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td =
width=3D&quot;241&quot;&gt;Administer the Offices&lt;/td&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; &lt;tr&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td =
width=3D&quot;243&quot;&gt; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;select name=3D&quot;AdminPeople&quot; =
onChange=3D&quot;reDirect(this)&quot; size=3D&quot;1&quot;&gt;</FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;option =
value=3D&quot;/testing/admin/AdminTransferPeople.asp&quot;&gt;TransferPe=
rson&lt;/option&gt;</FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;option =
value=3D&quot;/testing/admin/AdminTerminatePeople.asp&quot;&gt;Terminate=
Person&lt;/option&gt;</FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;option =
value=3D&quot;/testing/admin/AdminLOAPeople.asp&quot;&gt;LOAPerson&lt;/o=
ption&gt;</FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; &lt;option =
value=3D&quot;/testing/admin/AdminReactivatePeople.asp&quot;&gt;ReActiva=
tePerson&lt;/option&gt;</FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; &lt;option =
value=3D&quot;/testing/admin/AdminEditProfile.asp&quot;&gt;ChangeProfile=
id&lt;/option&gt;</FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;option selected&gt;Select Choice&lt;/option&gt;</FONT>
</P>

<P><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; &lt;/select&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C14619.CAE3B272--