hello
i have created my own Appointment page , what i want is to get the selected date when i double click on webMothview or a webWeekview so i can use that date as a startdate on my new page.
thanks
Handle the DblClick event on the week and month view, and then examine the HTML element that your event handler receives, e.g.:
function WebWeekView1_DblClick(oWeekView, oEvent, element){ var attr = element.getAttribute("date"); if ( attr != null ) { var dateParts = attr.split(","); if ( dateParts != null ) { var thisDate = new Date( ); var yyyy = parseInt( dateParts[0]); var mm = parseInt( dateParts[1]); var dd = parseInt( dateParts[2]); thisDate.setFullYear( yyyy,mm,dd); alert( thisDate.toDateString( )); }}
What if the user does not click on the date header but rather on the date box? Your example works great if the user double clicks on the date header, but doesn't work if the user double clicks on the section below the date header but still within the date box. How do you get the date then?
Mark <><