We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37984
    • 215 Posts
    I'm having an issue with a form on my site that uses a few date fields. I'm using the Jquery UI Datepicker to fill these fields, and I'm having a little trouble with the MODX Cache.

    The main issue is, I'm able to see the datepicker when clicking on the fields if I'm the viewing the page with no cache. The issue is, once I view it once, then MODX caches something that causes the datepicker to no longer appear.

    This is a site-wide problem, so certain that it's not related to one extra or another. Does anyone have any idea at all what the issue may be? More details as necessary.
      Jesse Couch
      MODX Aficionado, Front-End Designer & Developer
      http://www.designcouch.com
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      How are you loading the datepicker's script block?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 37984
        • 215 Posts
        It's loaded in the [[$html_header]] chunk. This holds basically everything that is between the <head> tags. Perhaps the solution is to call this chunk uncached?
          Jesse Couch
          MODX Aficionado, Front-End Designer & Developer
          http://www.designcouch.com
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I just don't see how a Javascript function can be affected by whether or not a page is cached.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 37984
            • 215 Posts
            I'm grasping at straws at this point. I've looked through this exhaustively, and I'm completely stumped.
              Jesse Couch
              MODX Aficionado, Front-End Designer & Developer
              http://www.designcouch.com