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

    I have created a TV call "ap-toDate" and set the Input Type to "DATE", but when I try to select the date for a document, the popup to slect date does not show up and it gives the following javascript error
    Error: calap is not defined
    Source File: http://ap/manager/index.php?id=67&a=27
    Line: 1

    What could be the problem?

    warm regards,

    -Raavi

    14 May 2006
    The error was because of the - in the TV name. When ap-toDate was renamed to apToDate, the calendar pops out.
      • 897
      • 1,620 Posts
      you try use object before it was declare or in yours js write with errors... imho
        "Und wenn du lange in einen Abgrund blickst, blickt der Abgrund auch in dich hinein."

        Не используйте Revo для "просто сайтов". Используйте Evo

        Who can defeat the Russian bear?
        • 24278
        • 165 Posts
        Dear Aleksey,

        I have not written any javascript code... is there a known issue with the MODx date type TV or is there something i’m doing wrong because the date selection does not popup.

        Attachments
        -----------
        1) I have attached a screen shot of the date input while creating a document.
        2) the TV creation screen.

        Please can someone advice on how can I tackle this issue.

        thanks

        -Raavi
          • 33337
          • 3,975 Posts
          What version of MODx you are using ?

          Also check to see if you uploaded the files correctly in manager\media\calendar.

          Hope it helps.

          regards,

          zi
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 24278
            • 165 Posts
            Zi,

            I’m using 0.9.1 and the calendar folder looks good. The website is been developed on an inhouse server and not yet been uploaded on the live server.

            What could be wrong? Has ony one ever faced this problem?

            Hope i’m doing he settings... in my screenshots (previous post). I really need help on this.

            warm regards,

            -Raavi
              • 21255
              • 215 Posts
              Is the publish-date field/calender (in "Document settings") working for you?
                • 24278
                • 165 Posts
                Netnoise,

                YES, the publish-date field works (i.e. it shows me a popup whereby I can select the date and time), but when i define a TV with Input Type of DATE (screnshot shows in earlier post)... I do not get the popup and it generates the javascript error shown above.

                Please, any suggestions...

                -raavi

                P.S. I have upgraded to MODx 0.9.2.1(rev 1005) and it still does not work.
                  • 2954
                  • 40 Posts
                  Posted as SOLVED with no solution.

                  Have the same error - any help?
                    • 25663 MODX Staff
                    • 12,272 Posts
                    14 May 2006
                    The error was because of the - in the TV name. When ap-toDate was renamed to apToDate, the calendar pops out.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Odd... I don’t see that post from the 14th either, the last one I see is from the 11th.
                        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