When you say "but it will not work" what exactly do you mean? Is it
including the file but the code is not executing? It's not including the
file? Or? Are you trying to include this more then one time on the same
page? Is this being included inside of another form?
Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com: (703) 805-1095
DSN: (703) 655-1095
-----Original Message-----
From: Allen Hudson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 12:15 PM
To: CF-Talk
Subject: cfincluded select box doesn't work
The code (at the bottom) is working on our live site. For the re-write we
want this select box in multiple places so the code is in a separate file
which is cfincluded. But it will not work. The file to be included itself
works when typed into the browser's URL box. This behaviour is consistent
when tested in Netscape 4.6 and IE 5.0.
Anyone have any insight? (or perhaps slightly different code, that does
work, that will achieve the same thing)
<script language="JavaScript">
<!-- Hide the script from old browsers --
function surfto(){
var URL =
document.myform.dest.options[document.myform.dest.selectedIndex].value;
window.location.href = URL;
}
//-->
</script>
<FORM name="myform">
<p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"
size="2">
<select name="dest" size=1 onChange ="surfto()">
<option selected value="#">Select a Vendor... </option>
<option value="/cf_testing/sarc/attachmate/attachmate-e.cfm">Attachmate
Corporation</option>
<option value="/cf_testing/sarc/diso/corel/corel-e.cfm">Corel
Corporation</option>
<option
value="/cf_testing/sarc/diso/empowered/empowered-e.cfm">Empowered Networks
Inc.</option>
<option value="/cf_testing/sarc/diso/entrust/entrust-e.cfm">Entrust
Tech. Ltd.</option>
<option value="/cf_testing/sarc/diso/esri/esri-e.cfm">ESRI Canada
Ltd.</option>
</select>
</font>
</p>
</form>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists