RE: Onchange submit

2000-04-05 Thread Holger Lockertsen

This works great for me... At least in MSIE and NS 4 and above

form
select name="id" onchange="submit(this)"
option value=""id/option
/select
/form

rgds

* Holger Lockertsen, Solutions Developer, Horisont Information Systems AS
* Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway
* 23 31 03 04 / 91 83 20 51
* [EMAIL PROTECTED]   http://www.horisont.no/

NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04

-Original Message-
From: Jason Egan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 04, 2000 7:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Onchange submit


I have the same problem, but I am using a form field -- there are three
action buttons all named submit -- different values, but the same form
name...

Shouldn't onblur="form.submit()" work?

-Original Message-
From: Jay Wigginton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 04, 2000 11:35 AM
To: [EMAIL PROTECTED]
Subject: RE: Onchange submit


I typically would use...

form action="submitpagename.cfm" method="post"

select name="selectboxname" ONCHANGE="form.submit()"

/form

Jay



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 04, 2000 7:19 AM
To: [EMAIL PROTECTED]
Subject: OT: Onchange submit


I want a form to be submitted when the user makes a change in a select box.
The form name
is "Employeeform". This doesn't work:

SELECT NAME="PayType" ONCHANGE="document.Employeeform.action='index.cfm';
document.Employeeform.submit()"

Why?

Gene Kraybill

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Onchange submit

2000-04-04 Thread Jay Wigginton

I typically would use...

form action="submitpagename.cfm" method="post"

select name="selectboxname" ONCHANGE="form.submit()"

/form

Jay



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 04, 2000 7:19 AM
To: [EMAIL PROTECTED]
Subject: OT: Onchange submit


I want a form to be submitted when the user makes a change in a select box.
The form name
is "Employeeform". This doesn't work:

SELECT NAME="PayType" ONCHANGE="document.Employeeform.action='index.cfm';
document.Employeeform.submit()"

Why?

Gene Kraybill

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Onchange submit

2000-04-04 Thread Stanislav Maximov

Try document.forms.Employeeform.submit()

Stas.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 04, 2000 3:19 PM
 To: [EMAIL PROTECTED]
 Subject: OT: Onchange submit
 
 
 I want a form to be submitted when the user makes a change in 
 a select box. The form name 
 is "Employeeform". This doesn't work:
 
 SELECT NAME="PayType" 
 ONCHANGE="document.Employeeform.action='index.cfm';
 document.Employeeform.submit()"
 
 Why?
 
 Gene Kraybill
 --
 
 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit 
 http://www.houseoffusion.com/index.cfm?sidebar=listsbody=list
s/cf_talk or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Onchange submit

2000-04-04 Thread Vlad Piankov

Try this
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

html
head

script language="JavaScript"


function surfto(f) {
myindex=document.forms[f].elements[0].selectedIndex;
location=document.forms[f].elements[0].options[myindex].value;
return true;
}


/script

 titleUntitled/title
/head

body
form method="post" name="frmTwo" action=""
select name="url" onchange='surfto(0)'

   option value=""OK - Choose the option.../option
   option value="http://www.allaire.com"Select 1/option
   option value="http://www.allaire.com"Select 2/option

   /select

/form


br
form method="post" name="frmOne" action=""
select name="url" onchange='surfto(1)'

   option value=""OK - Choose the option.../option
   option value="http://www.allaire.com"Select 1/option
   option value="http://www.allaire.com"Select 2/option
   /select

/form

/body
/html

**
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 04, 2000 7:19 AM
Subject: OT: Onchange submit


 I want a form to be submitted when the user makes a change in a select
box. The form name
 is "Employeeform". This doesn't work:

 SELECT NAME="PayType" ONCHANGE="document.Employeeform.action='index.cfm';
 document.Employeeform.submit()"

 Why?

 Gene Kraybill
 --

 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.