RE: Auto Submit Select Boxes

2002-09-20 Thread Adrian Lynch

onselect I think, I hate JS :O|

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]]
Sent: 20 September 2002 13:25
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Auto Submit Select Boxes

2002-09-20 Thread Chad

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=noclickPlease select the database you
wish to search/option
option value=noclick/option
option value=index150.htm150/option
option value=index300.htm300/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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Auto Submit Select Boxes

2002-09-20 Thread Sean Daniels

On Friday, September 20, 2002, at 08:25  AM, Rick Faircloth wrote:

 What's the piece of code that makes a
 Select box submit on selection without using a button?

select name=name onChange=submit()

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Auto Submit Select Boxes

2002-09-20 Thread Dave Watts

  What's the piece of code that makes a Select box 
  submit on selection without using a button?
 
 select name=name onChange=submit()

The submit method belongs to the Form object, so you'll typically have to
specify the path through the DOM hierarchy:

select name=name onchange=document.forms[0].submit();

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

: dream :: design :: develop :
MXDC 02 :: Join us at this all day conference for 
designers  developers to learn tips, tricks, best 
practices and more for the entire Macromedia MX suite.

September 28, 2002  ::  http://www.mxdc02.com/
(Register today, seats are limited!)
::

__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Auto Submit Select Boxes

2002-09-20 Thread Rick Faircloth

Perfect!

Thanks, Sean, and everyone who responded...

Rick


-Original Message-
From: Sean Daniels [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 9:44 AM
To: CF-Talk
Subject: Re: Auto Submit Select Boxes


On Friday, September 20, 2002, at 08:25  AM, Rick Faircloth wrote:

 What's the piece of code that makes a
 Select box submit on selection without using a button?

select name=name onChange=submit()


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Auto Submit Select Boxes

2002-09-20 Thread Robert Polickoski

Rick.

I am pretty sure it is the onchange event that will alow you to take an action when 
someone selects an option.  Then you need to programmaticall do a form.submit().


-- Original Message --
From: Adrian Lynch [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Fri, 20 Sep 2002 13:19:29 +0100

onselect I think, I hate JS :O|

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]]
Sent: 20 September 2002 13:25
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




__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists