Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
get Selected date
posted

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

Parents
No Data
Reply
  • 4960
    Suggested Answer
    posted

    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( ));
           }
    }

Children