Groups | Blog | Home
all groups > coldfusion flash integration > april 2006 >

coldfusion flash integration : how do you cahnge sleted date in cfcalendar when user chnages month


noodleweb
4/4/2006 6:25:09 PM
hi,
how do you make selected date change to first of the month if user scrolls
through months in cfcalendar.
not sure about the actionscript required to do this
basically want to pass the first of the month and end of the month selectred
bu user scrolling months in cfcalandar to cfgrid, for record filtering based on
month selected.ie force user to accept 1 st to end of month as date range but
using cfcalandar control to choose the month and year.
any thoughts?
The ScareCrow
4/5/2006 1:28:51 AM
You will need to add an event listener for the calendar

var myDC = {};
myDC.scroll = function(eventObj){
myDC.selectedDate = "1" + "/" + myDC.displayedMonth + "/" +
myDC.displayedYear;
}

_root.myCalendar.addEventListener("scroll", myDC);

Note:
This is totally untested, but I think should be close.
May be some format problems in setting the selected date.

Ken

AddThis Social Bookmark Button