You might want to try using a fully qualified domain name for your links,
like http://mycompany.com/cf_testing/sarc/attachmate/attachmate-e.cfm. That
way no matter where in your site it's placed, it will point to the right
file. Other than that, what errors are you getting?
Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200
[EMAIL PROTECTED]
http://www.spectrumastro.com
-----Original Message-----
From: Allen Hudson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 9:15 AM
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists