you already have....that basically is it....

but here is the date code as well (debug code incl.)....

<!--- Set Start and End dates for calendar --->
<cfset startDate = DateAdd("d","-1",now())>
<cfset startDate = DateFormat(startDate,"dd/mm/yyyy")>
<cfset endDate = DateAdd("yyyy","1",now())>
<cfset endDate = DateFormat(endDate,"mmm dd, yyyyy")>
<cfoutput>
<script language="JavaScript">
        var cal1 = new CalendarPopup();
        cal1x.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
        cal1x.addDisabledDates("#startDate#");
        cal1x.addDisabledDates("#endDate#", null);
</script>
</cfoutput>










-----Original Message-----
From: Rich Wild [mailto:[EMAIL PROTECTED]
Sent: 14 July 2003 10:30
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] CF to JS problem


can we see your code?

> -----Original Message-----
> From: Robertson-Ravo, Neil (RX)
> [mailto:[EMAIL PROTECTED]
> Sent: 14 July 2003 10:25
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] CF to JS problem
> 
> 
> anyone got any insight on this? its really bugging me...
> 
> -----Original Message-----
> From: Robertson-Ravo, Neil (RX)
> [mailto:[EMAIL PROTECTED]
> Sent: 10 July 2003 16:52
> To: '[EMAIL PROTECTED]'
> Subject: [ cf-dev ] CF to JS problem
> 
> 
> I am working with a JS calendar and the following code 
> creates the calendar
> and allows me to set a start and end date range...(the 
> between part is the
> dates you can pick
> 
>         <script language="JavaScript">
>               var cal1 = new CalendarPopup();
>               
> cal1x.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
>               cal1x.addDisabledDates("12/25/2003"); // start
>               cal1x.addDisabledDates("Jan 1, 2005",null); // end
>       </script>
> 
> basically when I try to replace the hardcoded dates with 
> dynamic CF vars,
> the whole thing doesnt like it : it doesn work at all...the 
> calendar pops
> up, but the dates are all active instead of the ones I select
> 
> anyone?
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to