Hi Steve,

I have given that a try but it doesn't seem to be working, I click on
something but it doesn't send me anywhere.  Here is my code:

          <form action="showresults.cfm" method="post" name="TypeOfJob">

                     <select name="Jobs" class="3columntextsmall" size=1
onChange="if(this[this.selectedIndex].value !=
""){this.form.submit();}">
              <option selected>Jobs</option>
 
<option>------------------------------------------</option>
              <option>OFFERED</option>
 
<option>------------------------------------------</option>
              <option value="constructionjobsoffered">construction
jobs</option>
              <option value="generaljobsoffered">general jobs</option>
              <option value="hospitalityjobsoffered">hospitality
jobs</option>
              <option value="itjobsoffered">it jobs</option>
              <option value="officejobsoffered">office jobs</option>
 
<option>------------------------------------------</option>
              <option>WANTED</option>
 
<option>------------------------------------------</option>
              <option value="constructionjobswanted">construction
jobs</option>
              <option value="generaljobswanted">general jobs</option>
              <option value="hospitalityjobswanted">hospitality
jobs</option>
              <option value="itjobswanted">it jobs</option>
              <option value="officejobswanted">office jobs</option>
            </select> 
          </form>

Thanks

Stuart (Saturday)



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Onnis
Sent: Wednesday, 2 July 2003 5:07 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Automatic Submit of Forms

Stuart

Use javascript

this is one of your select boxes

<select name="Jobs" class="3columntextsmall" size=1>
        <option selected>Jobs</option>
        <option>------------------------------------------</option>
        <option>OFFERED</option>
        <option>------------------------------------------</option>
      <option value="constructionjobsoffered">construction jobs</option>
      <option value="generaljobsoffered">general jobs</option>
      <option value="hospitalityjobsoffered">hospitality jobs</option>
      <option value="itjobsoffered">it jobs</option>
      <option value="officejobsoffered">office jobs</option>
      <option>------------------------------------------</option>
      <option>WANTED</option>
      <option>------------------------------------------</option>
      <option value="constructionjobswanted">construction jobs</option>
      <option value="generaljobswanted">general jobs</option>
      <option value="hospitalityjobswanted">hospitality jobs</option>
      <option value="itjobswanted">it jobs</option>
      <option value="officejobswanted">office jobs</option>
</select>

All you need to do is an an onChange event to the select box like this


<select name="Jobs" class="3columntextsmall" size=1
onChange="if(this[this.selectedIndex].value !=
""){this.form.submit();}">

This will trigger each time the option is changed and will only submit
if
the option has a value.

Give it ago

Steve


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Stuart Kidd
Sent: Wednesday, 2 July 2003 10:52 PM
To: CFAussie Mailing List
Subject: [cfaussie] Automatic Submit of Forms


Hi guys,

On my page http://www.020.com/index_020.cfm I have 5 drop-down boxes on
the left.  If for instance the user is interested in seeing jobs, I'd
like them to be able to click on 'jobs' and then select an option, such
as 'general jobs' and then be taken to the appropriate page without have
to click on a submit button.  However, I don't want the form to be
submitted if they click on '-----------------------' or 'OFFERED' or
'WANTED' as these are not options.

Is there an easy way to do there with CF using <cfform> and its dynamic
error checking?  Or is it all javascript?

Thanks,

Saturday



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to