Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve D 11 posts 41 karma points
    Aug 16, 2009 @ 23:59
    Steve D
    0

    DatePicker with Time control not functioning correctly

    This control, edited in Canvas does not load the jscript pages required to launch the calendar control. There is a message saying 'Calendar' not defined. which I believe is a bit of jscript required for this.

    Checking the standard site editor I noticed a range of js files missing from the Canvas (LiveEdit) page relating to calendars. Could someone please let me know if there is a way to get the DatePicker control functioning correctly in Canvas?

  • Steve D 11 posts 41 karma points
    Aug 17, 2009 @ 14:05
    Steve D
    0

    I've spotted the bit of JScript it possibly needs in Canvas, but would need to edit source to get it to work (so not sure if this is the reason)

    Calendar.setup({        inputField     :    "ctl00_body_testDate",
            ifFormat       :    "%Y-%m-%d",
            displayArea    :    "ctl00_body_testDate_show_e",
            daFormat       :    "%Y-%m-%d",
            button   :    "ctl00_body_testDate_f_trigger_e",
            singleClick :    true
        });

    This should be set for the calendar control to configure the values correctly. It also requires the JScript files for the calendar control being included. I'll try putting this code into the template to see if it fixes the problem temporarily.

Please Sign in or register to post replies

Write your reply to:

Draft