so did this help Neil? > -----Original Message----- > From: Rich Wild [mailto:[EMAIL PROTECTED] > Sent: 14 July 2003 10:38 > To: '[EMAIL PROTECTED]' > Subject: RE: [ cf-dev ] CF to JS problem > > > > you already have....that basically is it.... > > no it wasn't. That was the hardcoded JS code, I wanted the CF > code, which > you've now supplied. > > OK, it looks like your dateformatting is wrong. > > In your first e-mail, this line > > cal1x.addDisabledDates("12/25/2003"); // start > > is formatted mm/dd/yyyy > > whereas in your cf code you have startdate formatted as dd/mm/yyyy > > also you enddate should be formatted "mmm d, yyyy" as opposed > to the "mmm > dd, yyyyy" [sic on the 5 digits for yyyyy] > > the hardcoded day datepart doesn't contain a leading 0 > > > -----Original Message----- > > From: Robertson-Ravo, Neil (RX) > > [mailto:[EMAIL PROTECTED] > > Sent: 14 July 2003 10:33 > > To: '[EMAIL PROTECTED]' > > Subject: RE: [ cf-dev ] CF to JS problem > > > > > > 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] -- ** 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]
