We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27889
    • 415 Posts
    This is an auto-generated support/comment thread for debug tool.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    View all internals variables: $modx->documentObect, $_SERVER, $_GET, $_POST, $_SESSION.
      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
      • 25663 MODX Staff
      • 12,272 Posts
      Very cool code Soda... should come in very very handy. smiley
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 27889
        • 415 Posts
        Thanks rolleyes
        I’m just updated to use toogle’s scriptaculous effect
          MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
          MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
          • 20765
          • 90 Posts
          myfriendscallmebill Reply #4, 20 years, 1 month ago
          I created a new snippet, named it debugTool, pasted your code in.

          Then I created a new document, assigned it the "minimal" template, put [[debugTool]] in the content.

          When I display this page it is blank. When I view source I see the template code in the page, but nothing inserted by the snippet.

          Any idea what could be wrong? Could it be that Scriptaculous is not being found?
            • 27889
            • 415 Posts
            you must have
             <script src="[(base_url)]manager/media/script/scriptaculous/prototype.js" type="text/javascript"></script>
             <script src="[(base_url)]manager/media/script/scriptaculous/scriptaculous.js" type="text/javascript"></script>
            

            in the <head> ... </head> of your template.

            You must be logged in the manager and have update the version of scriptaculous.
            clik on the green text.
              MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
              MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
              • 18397
              • 3,250 Posts
              Soda,

              This snippet seems to be nonfunctional on a standard MODx 0.9.2.1 install. First, it reports a parse error on line 35 (not the problem). I tracked it down to when your count and display the $modx->documentObject. When I removed the offending lines the snippet ran but only displayed the "green text". In FF and Safari on the Mac when logged into the manager (and thus QuickEdit autoadding the prototype and scriptaculous links to the frontend) the script.aculo.us would not run. I tried rewriting that for a good half hour before stopping. Upon removing all of the display:none occurances in the snippet finally worked.
                • 27889
                • 415 Posts
                Thanks you, for your reply,
                Humm I tested it on Explorer, Opera, and FF under windows and it work well.
                The goal is to not have a long page, so if you remove the display none, it is not reached.
                I made lot of update these days, the current version is 0.5
                I can try to make a non-scriptaculous version, or have you an other idea ?


                  MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                  MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                  • 2472
                  • 151 Posts
                  Quote from: Soda at Aug 30, 2006, 02:38 AM

                  ...I can try to make a non-scriptaculous version, or have you an other idea ?

                  Personnally I always try to walk before trying to run... less is more you know.
                    A thing of beauty is a joy forever ( John Keats)
                    • 27889
                    • 415 Posts
                    Mark can you check the <base href > tag ? in the source of the displayed page please ?
                      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                      • 27889
                      • 415 Posts
                      I’m just trying it on a new scratch install.
                      The problem is the version of prototype and scriptaculous, update it and all works (at least version 1.6.2) smiley
                      Can anyone confirm ?
                        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]