I just stuck this in, but I think it's close. When you change the selection, it 
updates the form action.

======================
<script>
function reportfile_change(oSelect, oForm){
  oForm.action = oSelect.options[oSelect.SelectedIndex]
};
</script>

<select name="reportfile" onChange="reportfile_change(this, this.form)">
  <option value="action1.cfm">test1
  <option value="action2.cfm">test2
</select>
======================

>>> [EMAIL PROTECTED] 03/29/00 09:01AM >>>

Thanks Larry - 
Can you give me some guidance on syntax placement...

What I have...

<form action="" method="get" name="Selecttest" onsubmit="return
verify(document.Selecttest);">
<p>Report:  <select name="ReportFile">
                <option value="test1.rpt">test1
                <option value="test2.rpt">test2
                </select>

... other form fields ...

</form>

I want the form to be submited to whichever file is selected in the
"ReportFile" field...
Where would "this.form.action='x'" go????

FYI: I am using the onsubmit to make sure select boxex are checked


James



Yes, set the form's action property (available in ie4+ and NN3+ I think).
You can do this from a form element (this.form.action="foo.cfm").

If you want more info, check out:
http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm 

Larry
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk 
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=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?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to