We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17657
    • 6 Posts
    hi,

    i’ve tried to install the DateTimePicker plugin as explained, but unfortunately it’s not working (yet). when i click on the date button, still the old datetimepicker window appears. i have modx 0.9.6.3 installed, i’m using the german language package, and i’ve even selected OnDocFormPrerender. do i have to remove the default datetimepicker somehow or what can i do to get this nice plugin running?

    thanks for your help,
    lukas
      • 23276
      • 85 Posts
      Quote from: Lukas at Jan 22, 2009, 05:39 AM

      do i have to remove the default datetimepicker somehow or what can i do to get this nice plugin running?

      No, you need not remove default datepicker.
      All you to do is installing the plugin and enable system events for the plugin.
      Please, confirm JavaScript doesn’t cause errors.

      On modx 0963, the specifications of TV name is changed.
      So, when you use NON-alpahbetical or NON-numeric characters as TV name, JavaScript never run.

      (Because characters like symbols, unicode characters are URI-encoded and enbed in modx manager’s XHTML.
      Actually, they are invalid JavaScript.
      Then JavaScript is used in plugin cannot retrieve the XHTML elements.
      It’s also the same as ManagerManger plugin etc.)
        • 24495
        • 407 Posts
        Found this plugin today. It’s great and works fine for me at 0.9.6.3.

        Is there a way to get a default time setting, e.g. 01:00:00 or 00:00:10 or so?
          • 4018
          • 1,131 Posts
          FYI, doesn’t look like it current works in Safari. Definitely need to debug it. wink
            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 4018
            • 1,131 Posts
            Fixed Safari. Use this in place of the for loop:

                    for (var i = 0; i < dates.length; i ++) {
                        $(dates[i].field).attr('class', 'plugin-datetimepicker-field-' + (i + 1));
                        $(dates[i].trigger).attr('class', 'plugin-datetimepicker-trigger-' + (i + 1));
                        if ('show' in dates[i]) {
                            $(dates[i].show).attr('class', 'plugin-datetimepicker-show-' + (i + 1));
                        }
                        $(dates[i].trigger).removeAttr('onclick');
                    }
            


            Also, remove the $(document).ready(function(){ in the ManagerManager plugin. It’s not required since everything is already encapsulated in a "ready" function. smiley
              Jeff Whitfield

              "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
              • 8109
              • 128 Posts
              I’m concerned that this plugin does not seem to allow for entering dates prior to 1999. I need to be able to enter dates back to 1929. Is it possible?

              Also, I never need to set a time, and would like to be able to have a default time set (00:00:00). Is there a way?
                Revo 2.0.8-pl
                • 33479
                • 15 Posts
                I notice there have been no comments here for a long time. Does that mean this plugin is no longer supported?

                I am using Evo 1.0.5 and am still getting the old calendar popping up even though other changes have happened to indicate that it is working to some extent.

                Will this plugin only work in the content manager? I am looking for a popup that I can use on a form, any suggestions
                  Darren Burns
                  Zero Gravity Web Works
                  • 23276
                  • 85 Posts
                  Will this plugin only work in the content manager?

                  Yes.
                  Since Evolution, popup datetime picker has been built in MODX by the default, so now I recommend using the new one rather than this plugin.
                  If you want to build datetime picker in front-end, you can try other scripts like jQuery UI.