I use this code:
<SCRIPT LANGUAGE="JavaScript">
<!--
function openURL()
{
// grab index number of the selected option
selInd = document.theform.url.selectedIndex;
// get value of the selected option
goURL = document.theform.url.options[selInd].value;
// redirect browser to the grabbed value (hopefully a URL)
if(goURL != "noclick")
top.location.href = goURL;
}
//-->
</SCRIPT>
<form name="theform">
<select name="url" onChange="openURL()">
<option value="noclick">Please select the database you
wish to search</option>
<option value="noclick">--------</option>
<option value="index150.htm">150</option>
<option value="index300.htm">300</option>
</select>
</form>
> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 7:25 AM
> To: CF-Talk
> Subject: Auto Submit Select Boxes
>
> What's the piece of code that makes a
> Select box submit on selection without using a button?
>
> Rick
>
>
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists