Stuart
My fault
use this as the onChange
onChange="if(this[this.selectedIndex].value != ''){this.form.submit();}"
Was late and you cant have double quotes inside the onChange
That should work
Steve
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Stuart Kidd
Sent: Friday, 4 July 2003 1:03 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Automatic Submit of Forms
Hi Matt,
Yeah, that's what I want, but I'd like it to check for "" dynamically on
the same page so the user doesn't have to be redirected. Now if only I
can combine your bit and Steve's bit I should be able to get it to work!
:)
Thanks,
Stu (Saturday the Geezer)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hickman,
Matt
Sent: Thursday, 3 July 2003 1:06 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Automatic Submit of Forms
Geezer,
Is this what your after?? I would make the options in the list that you
don't want to pass a value "NULL" that way you can check that they've
chosen
this and do something with it.......someone might correct me here but if
the
<option> tag doesn't have value attribute is won't pass a value or does
it
pass a null or empty string value when submitted??
<form action="showresults.cfm" method="post" name="TypeOfJob">
<select name="Jobs" class="3columntextsmall" size=1
onChange="form.submit()">
<option value="NULL">Jobs</option>
<option value="NULL">------------------------------------------</option>
<option value="NULL">OFFERED</option>
<option value="NULL">------------------------------------------</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>
</select>
</form>
Then on your "showresults.cfm" page:
<cfif isDefined("TypeOfJob.Jobs")>
Do processing, display etc based on the selection made
<cfelseif #TypeOfJob.Jobs# IS "NULL">
Don't process send em back
</cfif>
-----Original Message-----
From: Stuart Kidd [mailto:[EMAIL PROTECTED]
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/
**********************************************************************
A new world of colour, sound and pictures awaits you:
Vodafone Live! More details at http://www.vodafone.com.au/live/
**********************************************************************"
This correspondence is for the named person's use only. It may
contain confidential or legally privileged information or both. "
No confidentiality or privilege is waived or lost by any "
mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You
must not disclose, copy or rely on any part of this correspondence
if you are not the intended recipient.
Any views expressed in this message are those of the individual sender,
except where the sender expressly, and with authority, states them to
be the views of Vodafone.
This email has been checked for viruses.
************************************************************************
**********************
---
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/