Peter

How about passing the date (mm yy) as the URL variable instead of the date
id, then just compare them. Use a cfparam above all this set to the current
month and year so it display today by default. Then in your calendar table
use the URL var and the query value to see if they're the same. If so
display the style you want for that particular <td> tag.

Bill 

-----Original Message-----
From: Peter Tanswell [mailto:[EMAIL PROTECTED] 
Sent: September 22, 2007 10:09 AM
To: CF-Talk
Subject: Re: urgent help required - using a users selection to select
specific data

Nope not getting any error - its actually working the first part - can I
email you off list and show you




On 9/23/07, Adkins, Randy <[EMAIL PROTECTED]> wrote:
>
> Ok are you getting an error when you first come to the page?
>
>
>
> -----Original Message-----
> From: Peter Tanswell [mailto:[EMAIL PROTECTED]
> Sent: Saturday, September 22, 2007 10:03 AM
> To: CF-Talk
> Subject: Re: urgent help required - using a users selection to select 
> specific data
>
> Hi yes - the form is being resubmitted to itself.
>
>
>
>
> On 9/22/07, Adkins, Randy <[EMAIL PROTECTED]> wrote:
> >
> > One issue, is your probably getting an error from:
> > FORM.TIMEDATE_PERIOD does not exist.
> > Unless the form is being submitted from a previous form.
> >
> > Are you submitting the form right back to itself?
> >
> > If not, then why do you need the <CFIF> statement in the OPTIONs
> >
> > If so, add a form parameter at the top of the page:
> > <cfparam name="form.timedate_period" default="">
> >
> >
> >
> > -----Original Message-----
> > From: Toby King [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, September 22, 2007 10:27 AM
> > To: CF-Talk
> > Subject: urgent help required - using a users selection to select 
> > specific data
> >
> > Hi there
> >
> > I'm really stuck on this issue - have been trying to work it out for 
> > several hours so would really appreciate some input as to what I 
> > need to do.
> >
> > I have displayed on screen an option where a user can select a month 
> > of a year to select specific data.
> >
> >
> > <table>
> > <form action="avgHours.cfm" method="post" name="form1"> <tr 
> > class="printhide"> <td align="center"> <b>Graph Comparison Month</b> 
> > <select name="timedate_period" onChange="document.form1.submit()">
> > <cfloop query="CHECK_Periods">
> > <option value="#timedate_id#" <cfif form.timedate_period eq 
> > Check_Periods.timedate_id>selected</cfif>>#dateformat(dateend, "mmmm 
> > yyyy")# </cfloop> </select> <input type="submit" value="Generate
> Report"
> > style="font-weight:bold;color:dodgerblue;background-color:white;bord
> > er
> > :n
> > one;">
> > </td>
> > </tr>
> > <tr class="printhide"><td>&nbsp;</td></tr>
> > </form>
> > </table>
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289198
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to