We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9913
    • 5 Posts
    I’m trying to get a javascript slideshow to go into Modx. I’ve tried to copy the script and paste it straight into the template HTML, it didn’t work, it would freeze up on me. I’ve doing the chunks but that didn’t work and I’ve tried to do TV s and no go. Does anyone having any ideas on what I might be doing wrong or another way of inserting the javascript. Thanks huh
      • 6228
      • 249 Posts
      The only way to be sure if the javascript is getting injected properly is to view the source code of the page displayed in your browser. You should be able to tell right away if something is missing, or if there is a problem with a path, or if some scripts are being injected in the wrong order.

      The best way for us to help is to see a working example.
        lo9on.com

        MODx Evolution/Revolution | Remote Desktop Training | Development
        • 9913
        • 5 Posts
        I don’t know if this will help but the site hasn’t gone live cuz of the problems we are having. Thanks again for the help
          • 6228
          • 249 Posts
          The only thing I see that could potentially be a problem is that you’re missing a closing head tag before the opening body tag.
            lo9on.com

            MODx Evolution/Revolution | Remote Desktop Training | Development
            • 9913
            • 5 Posts

            Thanks for that! I put the closing head tag but now I can’t figure out why the zoom feature isn’t work. I’ve checked my paths and again it looks right. Thumbnails work too.Here’s the link.


            http://new.nmhistorymuseum.org/exhibits/fashioning-new-mexico/exploring-the-underworld.php
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              I’m getting a "jquery is not defined" error; it looks like your inline javascript should be using $ instead of jquery. I usually have to tweak the QuickManager configuration settings to get everything to play nice both when logged in as Manager user and not.
                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
                • 9913
                • 5 Posts
                Thanks for the help. I’ll have to tell him about the settings in ModX. Do u know if there would be a need for the a plug in to get the zoom feature to work? I’m still having issues getting the zoom feature to work. the pic swap out but no zoom.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  It’s all in the javascript. If you’re getting javascript errors, then those need to be fixed.

                  The only effect the QuickManager plugin has it that it can be configured to load the jquery libraries, and to load them in no-conflict mode. This can mess things up when viewing your work while logged in as a Manager, because making your javascript work under those conditions may not work at all when you’re not logged in and QuickManager isn’t loaded at all.
                    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
                    • 9913
                    • 5 Posts
                    thanks alot for the help grin