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
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
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
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
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
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
6 matches
Mail list logo